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 dd6c489 commit 0fce2dd
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@ 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
$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
with:
Expand Down

0 comments on commit 0fce2dd

Please sign in to comment.