CI: change signing action

This commit is contained in:
NoCrypt 2024-07-28 23:15:18 +07:00
parent e7c950f3c9
commit 1bd7968ab3

View file

@ -71,33 +71,30 @@ 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-release@1.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
with:
msg: ${{ fromJSON( steps.sign_app.outputs.outputs ).signedReleaseFiles }}
msg: ${{ fromJSON( steps.sign_app.outputs.outputs ).signedFiles }}
separator: ':'
- name: Upload APK to release