Skip to content

Commit 0373a58

Browse files
committed
ci: Sign fail in build action
Credits: @sffxzzp
1 parent 7090c83 commit 0373a58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-app.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
with:
2828
name: App bundle
2929
path: app-debug.apk
30+
# https://github.com/r0adkll/sign-android-release/issues/84#issuecomment-1889636075
31+
- name: Setup build tool version variable
32+
shell: bash
33+
run: |
34+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
35+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
36+
echo Last build tool version is: $BUILD_TOOL_VERSION
3037
- uses: r0adkll/sign-android-release@v1
3138
if: github.event_name != 'pull_request'
3239
name: Sign app APK
@@ -36,6 +43,8 @@ jobs:
3643
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
3744
alias: ${{ secrets.ALIAS }}
3845
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
46+
env:
47+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
3948
- uses: actions/upload-artifact@v4
4049
if: github.event_name != 'pull_request'
4150
name: Upload signed app APK

0 commit comments

Comments
 (0)