Skip to content

Commit

Permalink
Fix release workflow (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Feb 4, 2024
1 parent 397d5d5 commit 1d27c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Build release APK
run: |
./gradlew assembleRelease
$ANDROID_SDK_ROOT/build-tools/30.0.2/zipalign -v -p 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
$ANDROID_SDK_ROOT/build-tools/*/zipalign -v -p 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > keystore.jks
echo "${{ secrets.KEYSTORE_PASSWORD }}" | $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --out app-release.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
$ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner verify app-release.apk
echo "${{ secrets.KEYSTORE_PASSWORD }}" | $ANDROID_SDK_ROOT/build-tools/*/apksigner sign --ks keystore.jks --out app-release.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
$ANDROID_SDK_ROOT/build-tools/*/apksigner verify app-release.apk
- name: Parse tag
id: parse_tag
run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'"
Expand Down

0 comments on commit 1d27c6e

Please sign in to comment.