chore: Update build configuration
This commit is contained in:
parent
d1e12f0323
commit
a5038e6fc2
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -25,11 +25,13 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Write Branch and Commit info
|
- name: Write Branch and Hash info
|
||||||
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)
|
||||||
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
|
||||||
@ -48,7 +50,12 @@ jobs:
|
|||||||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||||
buildToolsVersion: 33.0.0
|
buildToolsVersion: 33.0.0
|
||||||
|
|
||||||
|
- 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}}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: GakumasLocalify-EN
|
name: Gakumas-Localify-EN
|
||||||
path: ${{steps.sign_app.outputs.signedFile}}
|
path: ${{ env.SIGNED_APK }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user