Skip to content

Commit

Permalink
ci: Sign fail in build action
Browse files Browse the repository at this point in the history
Credits: @sffxzzp
  • Loading branch information
kaaass committed Apr 11, 2024
1 parent 7090c83 commit 0373a58
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
with:
name: App bundle
path: app-debug.apk
# https://github.com/r0adkll/sign-android-release/issues/84#issuecomment-1889636075
- name: Setup build tool version variable
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 Last build tool version is: $BUILD_TOOL_VERSION
- uses: r0adkll/sign-android-release@v1
if: github.event_name != 'pull_request'
name: Sign app APK
Expand All @@ -36,6 +43,8 @@ jobs:
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
name: Upload signed app APK
Expand Down

0 comments on commit 0373a58

Please sign in to comment.