mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-19 07:32:05 +00:00
CI: new sign action
This commit is contained in:
parent
beaebf7a2a
commit
99dd8762d0
1 changed files with 11 additions and 13 deletions
24
.github/workflows/android.yml
vendored
24
.github/workflows/android.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue