Skip to content

Commit

Permalink
Fix CI APK release process
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed May 7, 2024
1 parent 4ce7452 commit 7e87744
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,24 @@ jobs:
name: unsigned-app.apk
path: .

- uses: r0adkll/sign-android-release@v1
name: Sign the APK
- name: Detect latest build tool version
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Latest build tool version is: $BUILD_TOOL_VERSION
- name: Sign the APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: .
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Publish the APK to GitHub Releases
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 7e87744

Please sign in to comment.