From 92cc76e86fa4ae9b79f268b05e2ee9283aed7fa3 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 16 Feb 2024 23:02:31 +0800 Subject: [PATCH] Update build-f-droid-apk.yml --- .github/workflows/build-f-droid-apk.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index 54acb27..d0856c5 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -96,6 +96,16 @@ jobs: ./gradlew clean ./gradlew bundleRelease --no-daemon --warning-mode all + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + generate_release_notes: true + files: android/app/build/outputs/bundle/release/app-release.aab + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Sign AAB id: sign_app_aab uses: r0adkll/sign-android-release@v1 @@ -107,14 +117,15 @@ jobs: keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }} - + - name: Rename AAB + run: mv android/app/build/outputs/bundle/release/app-release.aab android/app/build/outputs/bundle/release/app-release-signed.aab - name: Create Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: draft: true generate_release_notes: true - files: android/app/build/outputs/bundle/release/app-release.aab + files: android/app/build/outputs/bundle/release/app-releasee-signed.aab env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}