From 25b219744fe40fe0601d629014176b1a8bdbcfec Mon Sep 17 00:00:00 2001 From: Natsu Date: Sat, 6 Jul 2024 12:27:54 +0700 Subject: [PATCH] fix(build.yml): update sign-android-release action to use ilharp/sign-android-release@v1 --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7c20a8..00bf7e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,23 +44,22 @@ jobs: run: ./gradlew build - name: Sign APK - uses: r0adkll/sign-android-release@v1 + uses: ilharp/sign-android-release@v1 id: sign_app with: - releaseDirectory: app/build/outputs/apk/release - signingKeyBase64: ${{ secrets.KEYSTOREB64 }} - alias: ${{ secrets.ANDROID_KEY_ALIAS }} + releaseDir: app/build/outputs/apk/debug + signingKey: ${{ secrets.KEYSTOREB64 }} + keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} - env: - BUILD_TOOLS_VERSION: "34.0.0" + buildToolsVersion: 34.0.0 continue-on-error: true - name: Rename Signed APK run: | branch=$(git rev-parse --abbrev-ref HEAD) hash=$(git rev-parse --short=7 HEAD) - mv ${{steps.sign_app.outputs.signedReleaseFile}} app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk + mv ${{steps.sign_app.outputs.signedFile}} app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk" >> $GITHUB_ENV - name: Upload Artifact