From 2f0be4f55c4c6a7c4ef2539a597d24b9d985cd67 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 16 Feb 2024 20:30:35 +0800 Subject: [PATCH] Update build-f-droid-apk.yml --- .github/workflows/build-f-droid-apk.yml | 39 ++++++++++++------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index 4693f04..67bcb83 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -90,36 +90,33 @@ jobs: # - name: Remove prorietary bits (for fix f-droid) # run: npx zx scripts/fit-f-droid.mjs - - name: Build APK - run: | - cd android - ./gradlew clean - ./gradlew assembleRelease --no-daemon --warning-mode all + # - name: Build APK + # run: | + # cd android + # ./gradlew clean + # ./gradlew assembleRelease --no-daemon --warning-mode all - ## sign generated apk - - name: Sign APK - id: sign_app_apk - uses: r0adkll/sign-android-release@v1 - with: - releaseDirectory: android/app/build/outputs/apk/release - signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }} - alias: ${{ secrets.ANDROID_ALIAS }} - keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }} - keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} - env: - BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }} + # ## sign generated apk + # - name: Sign APK + # id: sign_app_apk + # uses: r0adkll/sign-android-release@v1 + # with: + # releaseDirectory: android/app/build/outputs/apk/release + # signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }} + # alias: ${{ secrets.ANDROID_ALIAS }} + # keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }} + # keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} + # env: + # BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }} - name: Build AAB run: | cd android # ./gradlew clean ./gradlew bundleRelease --no-daemon --warning-mode all - ls android/app/build/outputs/bundle/release/ - ls android/app/build/outputs/apk/release/ - name: Show artifacts run: | - cd android ls android/app/build/outputs/bundle/release/ ls android/app/build/outputs/apk/release/ @@ -142,7 +139,7 @@ jobs: draft: true generate_release_notes: true files: | - android/app/build/outputs/apk/release/app-release-signed.apk + # android/app/build/outputs/apk/release/app-release-signed.apk android/app/build/outputs/bundle/release/app-release-signed.aab env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}