From 885abf9275358482de5fa0898d52ade9c6cb3b61 Mon Sep 17 00:00:00 2001 From: Natsu Date: Tue, 18 Jun 2024 17:23:50 +0700 Subject: [PATCH] chore: Update build configuration --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3005aaf..3162423 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,8 +30,6 @@ jobs: branch=$(git rev-parse --abbrev-ref HEAD) hash=$(git rev-parse --short=7 HEAD) echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt - echo "BRANCH=$branch" >> $GITHUB_ENV - echo "HASH=$hash" >> $GITHUB_ENV - name: Grant execute permission for Gradlew run: chmod +x gradlew @@ -52,8 +50,10 @@ jobs: - name: Rename signed APK run: | - echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_${{env.BRANCH}}.${{env.HASH}}.apk" >> $GITHUB_ENV - mv ${{steps.sign_app.outputs.signedFile}} ${{env.SIGNED_APK}} + branch=$(git rev-parse --abbrev-ref HEAD) + hash=$(git rev-parse --short=7 HEAD) + 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 - uses: actions/upload-artifact@v4 with: