chore(build.yml): update sign-android-release action to use r0adkll/sign-android-release@v1
All checks were successful
Android CI / build (push) Successful in 4m33s
All checks were successful
Android CI / build (push) Successful in 4m33s
feat(build.yml): update upload-artifact action to use actions/upload-artifact@v3 feat(build.yml): remove send notification to Discord step
This commit is contained in:
parent
25b219744f
commit
9ac060a1da
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -44,38 +44,31 @@ jobs:
|
|||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign APK
|
||||||
uses: ilharp/sign-android-release@v1
|
uses: r0adkll/sign-android-release@v1
|
||||||
id: sign_app
|
id: sign_app
|
||||||
with:
|
with:
|
||||||
releaseDir: app/build/outputs/apk/debug
|
releaseDirectory: app/build/outputs/apk/release
|
||||||
signingKey: ${{ secrets.KEYSTOREB64 }}
|
signingKeyBase64: ${{ secrets.KEYSTOREB64 }}
|
||||||
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||||
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||||
buildToolsVersion: 34.0.0
|
env:
|
||||||
|
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.signedFile}} app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk
|
mv ${{steps.sign_app.outputs.signedReleaseFile}} app/build/outputs/apk/release/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/release/Gakumas-Localify-EN_$branch.$hash.apk" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Gakumas-Localify-EN
|
name: Gakumas-Localify-EN
|
||||||
path: ${{ env.SIGNED_APK }}
|
path: ${{ env.SIGNED_APK }}
|
||||||
|
|
||||||
- name: Send Notification to Discord
|
|
||||||
uses: sarisia/actions-status-discord@v1
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
status: ${{ job.status }}
|
|
||||||
title: "Android CI"
|
|
||||||
|
|
||||||
- name: Send New Build Notification to Discord
|
- name: Send New Build Notification to Discord
|
||||||
uses: sarisia/actions-status-discord@v1
|
uses: sarisia/actions-status-discord@v1
|
||||||
if: success()
|
if: success()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user