Skip to content

Commit

Permalink
CI: retry when signing is not successful
Browse files Browse the repository at this point in the history
  • Loading branch information
NoCrypt committed Jul 28, 2024
1 parent b9e4835 commit 3a11414
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,25 @@ jobs:
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- uses: filippoLeporati93/android-release-signer@v1
- uses: Wandalen/wretry.action@master
name: Sign app APK
id: sign_app
with:
releaseDirectory: capacitor/android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
attempt_limit: 3
action: filippoLeporati93/android-release-signer@v1
with: |
releaseDirectory: capacitor/android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- uses: jungwinter/split@v2
id: signed_files
with:
msg: ${{ steps.sign_app.outputs.signedReleaseFiles }}
msg: ${{ fromJSON( steps.sign_app.outputs.out ).signedReleaseFiles }}
separator: ':'

- name: Upload APK to release
Expand Down

0 comments on commit 3a11414

Please sign in to comment.