1
0

fix(build.yml): update sign-android-release action to use ilharp/sign-android-release@v1
Some checks failed
Android CI / build (push) Failing after 4m4s

This commit is contained in:
Natsu 2024-07-06 12:27:54 +07:00
parent 279d6ac55a
commit 25b219744f
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6

View File

@ -44,23 +44,22 @@ jobs:
run: ./gradlew build run: ./gradlew build
- name: Sign APK - name: Sign APK
uses: r0adkll/sign-android-release@v1 uses: ilharp/sign-android-release@v1
id: sign_app id: sign_app
with: with:
releaseDirectory: app/build/outputs/apk/release releaseDir: app/build/outputs/apk/debug
signingKeyBase64: ${{ secrets.KEYSTOREB64 }} signingKey: ${{ secrets.KEYSTOREB64 }}
alias: ${{ secrets.ANDROID_KEY_ALIAS }} keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
env: buildToolsVersion: 34.0.0
BUILD_TOOLS_VERSION: "34.0.0"
continue-on-error: true continue-on-error: true
- name: Rename Signed APK - name: Rename Signed APK
run: | run: |
branch=$(git rev-parse --abbrev-ref HEAD) branch=$(git rev-parse --abbrev-ref HEAD)
hash=$(git rev-parse --short=7 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 echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk" >> $GITHUB_ENV
- name: Upload Artifact - name: Upload Artifact