From 690c49f6872b7daf0f1b6f674b1b396787745e5f Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 16 Feb 2024 18:00:32 +0800 Subject: [PATCH] chore: build aab --- .github/workflows/build-f-droid-apk.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index 2d10399..389a98a 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -90,15 +90,16 @@ jobs: # - name: Remove prorietary bits (for fix f-droid) # run: npx zx scripts/fit-f-droid.mjs - - name: Build apk + - name: Build apk & aab run: | cd android cat /home/runner/work/TidGi-Mobile/TidGi-Mobile/android/app/src/main/java/ren/onetwo/tidgi/mobile/MainActivity.kt ./gradlew clean ./gradlew -v ./gradlew assembleRelease --no-daemon --warning-mode all + ./gradlew bundleRelease --no-daemon --warning-mode all - ## sign generated apk + ## sign generated apk (not signing aab, which will be signed by store) - name: Sign APK id: sign_app uses: r0adkll/sign-android-release@v1 @@ -117,6 +118,8 @@ jobs: with: draft: true generate_release_notes: true - files: android/app/build/outputs/apk/release/* + files: | + android/app/build/outputs/apk/release/app-release-signed.apk + android/app/build/outputs/bundle/release/app-release.aab env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}