Skip to content

Commit 15e7a9d

Browse files
authored
Merge pull request #2886 from element-hq/feature/bma/fdroidRelease
Let the CI build APKs for FDroid release.
2 parents 880ebb4 + d2a4339 commit 15e7a9d

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ env:
1111
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 8 --no-daemon
1212

1313
jobs:
14-
release:
15-
name: Create App Bundle
14+
gplay:
15+
name: Create App Bundle (Gplay)
1616
runs-on: ubuntu-latest
1717
concurrency:
1818
group: ${{ github.ref == 'refs/head/main' && format('build-release-main-{0}', github.sha) }}
@@ -38,3 +38,31 @@ jobs:
3838
name: elementx-app-gplay-bundle-unsigned
3939
path: |
4040
app/build/outputs/bundle/gplayRelease/app-gplay-release.aab
41+
42+
fdroid:
43+
name: Create APKs (FDroid)
44+
runs-on: ubuntu-latest
45+
concurrency:
46+
group: ${{ github.ref == 'refs/head/main' && format('build-release-main-{0}', github.sha) }}
47+
cancel-in-progress: true
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Use JDK 17
51+
uses: actions/setup-java@v4
52+
with:
53+
distribution: 'temurin' # See 'Supported distributions' for available options
54+
java-version: '17'
55+
- name: Configure gradle
56+
uses: gradle/actions/setup-gradle@v3
57+
- name: Create APKs
58+
env:
59+
ELEMENT_ANDROID_MAPTILER_API_KEY: ${{ secrets.MAPTILER_KEY }}
60+
ELEMENT_ANDROID_MAPTILER_LIGHT_MAP_ID: ${{ secrets.MAPTILER_LIGHT_MAP_ID }}
61+
ELEMENT_ANDROID_MAPTILER_DARK_MAP_ID: ${{ secrets.MAPTILER_DARK_MAP_ID }}
62+
run: ./gradlew assembleFdroidRelease $CI_GRADLE_ARG_PROPERTIES
63+
- name: Upload apks as artifact
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: elementx-app-fdroid-apks-unsigned
67+
path: |
68+
app/build/outputs/apk/fdroid/release/*.apk

0 commit comments

Comments
 (0)