Skip to content

Commit

Permalink
Create production signed artifact in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Aug 13, 2024
1 parent d34d80c commit 3f9fca3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,14 @@ jobs:
- name: Setup Android problem matchers
uses: jonasb/android-problem-matchers-action@v1
- name: Build
run: ./gradlew assemble
run: |
./gradlew assemble
$ANDROID_SDK_ROOT/build-tools/34.0.0/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/34.0.0/apksigner sign --ks keystore.jks --out app-release.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
$ANDROID_SDK_ROOT/build-tools/34.0.0/apksigner verify app-release.apk
- name: Archive production APK
uses: actions/upload-artifact@v4
with:
name: apk
path: app-release.apk

0 comments on commit 3f9fca3

Please sign in to comment.