chore: Update build configuration
This commit is contained in:
parent
a5038e6fc2
commit
885abf9275
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -30,8 +30,6 @@ jobs:
|
|||||||
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)
|
||||||
echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt
|
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
|
- name: Grant execute permission for Gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
@ -52,8 +50,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Rename signed APK
|
- name: Rename signed APK
|
||||||
run: |
|
run: |
|
||||||
echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_${{env.BRANCH}}.${{env.HASH}}.apk" >> $GITHUB_ENV
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
mv ${{steps.sign_app.outputs.signedFile}} ${{env.SIGNED_APK}}
|
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
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user