Skip to content

Commit

Permalink
update .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jan 11, 2025
1 parent f90b565 commit 59a7769
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: 📥 Checkout Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,11 +45,9 @@ jobs:
cd android
chmod +x ./gradlew
./gradlew clean assembleRelease
- name: 🔑 Decode Keystore
run: |
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > android/app/release-key.jks
- name: 🔏 Sign APK
run: |
$ANDROID_HOME/build-tools/34.0.0/apksigner sign \
Expand All @@ -55,7 +57,6 @@ jobs:
--key-pass pass:${{ secrets.KEY_PASSWORD }} \
--out android/app/build/outputs/apk/release/app-release-signed.apk \
android/app/build/outputs/apk/release/app-release-unsigned.apk
- name: ☁️ Upload Signed APK
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 59a7769

Please sign in to comment.