From 237917419a8f154fc56b5a7063b87b9b319e4a84 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 12 Jun 2024 19:23:07 +0200 Subject: [PATCH] CI: release Element Enterprise --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f596d5e438..af3abba254 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,36 @@ jobs: path: | app/build/outputs/bundle/gplayRelease/app-gplay-release.aab + enterprise: + name: Create App Bundle Enterprise + runs-on: ubuntu-latest + concurrency: + group: ${{ format('build-release-main-gplay-{0}', github.sha) }} + cancel-in-progress: true + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Use JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '17' + - name: Configure gradle + uses: gradle/actions/setup-gradle@v3 + - name: Create Enterprise app bundle + env: + ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }} + ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }} + ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }} + run: ./gradlew bundleGplayRelease $CI_GRADLE_ARG_PROPERTIES + - name: Upload bundle as artifact + uses: actions/upload-artifact@v4 + with: + name: elementx-enterprise-app-gplay-bundle-unsigned + path: | + app/build/outputs/bundle/gplayRelease/app-gplay-release.aab + fdroid: name: Create APKs (FDroid) runs-on: ubuntu-latest