CI: new sign action

This commit is contained in:
ncpt 2024-07-29 14:32:41 +07:00 committed by GitHub
parent beaebf7a2a
commit 99dd8762d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,27 +71,25 @@ jobs:
- name: Stop Gradle daemon
run: cd android && ./gradlew --stop
- 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
# - 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: Wandalen/wretry.action@master
name: Sign app APK
id: sign_app
with:
attempt_limit: 3
action: filippoLeporati93/android-release-signer@v1
action: NoCrypt/sign-android@v1.0.1
with: |
releaseDirectory: capacitor/android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
releaseDir: capacitor/android/app/build/outputs/apk/release
signingKey: ${{ secrets.SIGNING_KEY }}
keyAlias: ${{ 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
@ -107,4 +105,4 @@ jobs:
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._0 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._1 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._2 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._3 }}
gh release upload --clobber $(gh release list --limit 1 --json tagName --jq '.[0].tagName') ../${{ steps.signed_files.outputs._3 }}