|
|
@ -11,8 +11,8 @@ env: |
|
|
|
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8 --no-daemon |
|
|
|
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8 --no-daemon |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
release: |
|
|
|
gplay: |
|
|
|
name: Create App Bundle |
|
|
|
name: Create App Bundle (Gplay) |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
concurrency: |
|
|
|
concurrency: |
|
|
|
group: ${{ github.ref == 'refs/head/main' && format('build-release-main-{0}', github.sha) }} |
|
|
|
group: ${{ github.ref == 'refs/head/main' && format('build-release-main-{0}', github.sha) }} |
|
|
@ -38,3 +38,31 @@ jobs: |
|
|
|
name: elementx-app-gplay-bundle-unsigned |
|
|
|
name: elementx-app-gplay-bundle-unsigned |
|
|
|
path: | |
|
|
|
path: | |
|
|
|
app/build/outputs/bundle/gplayRelease/app-gplay-release.aab |
|
|
|
app/build/outputs/bundle/gplayRelease/app-gplay-release.aab |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fdroid: |
|
|
|
|
|
|
|
name: Create APKs (FDroid) |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
concurrency: |
|
|
|
|
|
|
|
group: ${{ github.ref == 'refs/head/main' && format('build-release-main-{0}', github.sha) }} |
|
|
|
|
|
|
|
cancel-in-progress: true |
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
|
|
|
- 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 APKs |
|
|
|
|
|
|
|
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 assembleFdroidRelease $CI_GRADLE_ARG_PROPERTIES |
|
|
|
|
|
|
|
- name: Upload apks as artifact |
|
|
|
|
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
name: elementx-app-fdroid-apks-unsigned |
|
|
|
|
|
|
|
path: | |
|
|
|
|
|
|
|
app/build/outputs/apk/fdroid/release/*.apk |
|
|
|