From 1924bd34b70f9214abea9ae34688c24eff778059 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 16 Feb 2024 22:25:04 +0800 Subject: [PATCH] Update build-f-droid-apk.yml --- .github/workflows/build-f-droid-apk.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index e09919d..54acb27 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -93,7 +93,7 @@ jobs: - name: Build AAB run: | cd android - # ./gradlew clean + ./gradlew clean ./gradlew bundleRelease --no-daemon --warning-mode all - name: Sign AAB @@ -108,6 +108,16 @@ jobs: env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }} + - 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: Build APK run: | cd android @@ -127,20 +137,12 @@ jobs: env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }} - - - name: Show artifacts - run: | - ls android/app/build/outputs/apk/release/ - ls android/app/build/outputs/bundle/release/ - - 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/apk/release/app-release-signed.apk - android/app/build/outputs/bundle/release/app-release.aab + files: android/app/build/outputs/apk/release/app-release-signed.apk env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}