Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
starry-shivam authored Jul 8, 2024
1 parent 0fce2dd commit a4283be
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ jobs:
id: build
run: bash ./gradlew assembleRelease

- name: Sign APK
id: sign_apk
run: |
APK_FILE=app/build/outputs/apk/release/app-release-unsigned.apk
SIGNED_APK_FILE=app/build/outputs/apk/release/app-release-signed.apk
echo ${{ secrets.BASE64KEY }} | base64 --decode > /tmp/signingkey.jks
apksigner=${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools/ | tail -1)/apksigner
echo "APK Signer Path: $apksigner"
$apksigner sign \
--ks /tmp/signingkey.jks \
--ks-key-alias ${{ secrets.ALIAS }} \
--ks-pass pass:${{ secrets.KEY_STORE_PASSWORD }} \
--key-pass pass:${{ secrets.KEY_PASSWORD }} \
--out $SIGNED_APK_FILE \
--alignment-preserved true \
$APK_FILE
env:
ANDROID_HOME: ${{ env.ANDROID_HOME }}


- name: Make artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit a4283be

Please sign in to comment.