Skip to content

Commit 3a3cb32

Browse files
committed
Fix CI APK release process
1 parent 8a7b6d3 commit 3a3cb32

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,24 @@ jobs:
3636
name: unsigned-app.apk
3737
path: .
3838

39-
- uses: r0adkll/sign-android-release@v1
40-
name: Sign the APK
39+
- name: Detect latest build tool version
40+
shell: bash
41+
run: |
42+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
43+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
44+
echo Latest build tool version is: $BUILD_TOOL_VERSION
45+
46+
- name: Sign the APK
47+
uses: r0adkll/sign-android-release@v1
4148
id: sign_app
4249
with:
4350
releaseDirectory: .
4451
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
4552
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
4653
keyStorePassword: ${{ secrets.SIGNING_KEY_STORE_PASSWORD }}
4754
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
55+
env:
56+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
4857

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

0 commit comments

Comments
 (0)