Skip to content

Commit 73f3e1d

Browse files
Update release workflow for production builds
This commit refines the `android-release_ci.yml` workflow to specifically handle production releases and avoid conflicts with nightly builds. Key changes include: - The workflow trigger is now more specific, running only on tags matching the `*.*.*.*` pattern, explicitly excluding `nightly` builds. - The build commands have been updated from `assembleRelease` and `bundleRelease` to `assembleProdRelease` and `bundleProdRelease` to generate the production variant. - Paths for the release artifacts (`.apk`, `.aab`) and the ProGuard `mapping.txt` file have been updated to reflect the `prod/release` and `prodRelease` build output directories.
1 parent ebfd649 commit 73f3e1d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/android-release_ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ name: Android Release CI
44
on:
55
push:
66
tags:
7-
- '*'
7+
- '*.*.*.*'
88

99
jobs:
1010
build:
1111
name: Build, Sign & Release
12+
if: "!startsWith(github.ref_name, 'nightly')"
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout project
@@ -37,14 +38,14 @@ jobs:
3738
run: chmod +x gradlew
3839

3940
- name: Build
40-
run: ./gradlew clean && ./gradlew assembleRelease && ./gradlew bundleRelease
41+
run: ./gradlew clean && ./gradlew assembleProdRelease && ./gradlew bundleProdRelease
4142

4243
- name: Sign APK
4344
uses: ilharp/[email protected]
4445
# ID used to access action output
4546
id: sign_app_apk
4647
with:
47-
releaseDir: app/build/outputs/apk/release
48+
releaseDir: app/build/outputs/apk/prod/release
4849
signingKey: ${{ secrets.SIGNINGKEY_BASE64 }}
4950
keyAlias: ${{ secrets.KEY_ALIAS }}
5051
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
@@ -64,7 +65,7 @@ jobs:
6465
uses: svenstaro/[email protected]
6566
with:
6667
repo_token: ${{ secrets.GITHUB_TOKEN }}
67-
file: app/build/outputs/mapping/release/mapping.txt
68+
file: app/build/outputs/mapping/prodRelease/mapping.txt
6869
asset_name: MultiLauncher-${{ github.ref_name }}-mapping.txt
6970
tag: ${{ github.ref }}
7071
overwrite: true
@@ -74,7 +75,7 @@ jobs:
7475
# ID used to access action output
7576
id: sign_app_aab
7677
with:
77-
releaseDir: app/build/outputs/bundle/release/
78+
releaseDir: app/build/outputs/bundle/prodRelease/
7879
signingKey: ${{ secrets.SIGNINGKEY_BASE64 }}
7980
keyAlias: ${{ secrets.KEY_ALIAS }}
8081
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}

0 commit comments

Comments
 (0)