Skip to content

Commit

Permalink
ci: Fix Sign issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Art-Chen authored Jun 20, 2024
1 parent 27a6320 commit a1e4000
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ jobs:
sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties
./gradlew assembleRelease
- name: Get Build Tool Version
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: Sign Release
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
if: ${{ env.SIGNING_KEY != '' }}
continue-on-error: true
uses: kevin-david/zipalign-sign-android-release@v1
Expand Down Expand Up @@ -71,4 +79,4 @@ jobs:
artifacts: ${{steps.sign_app.outputs.signedReleaseFile}}
generateReleaseNotes: true
makeLatest: true
replacesArtifacts: true
replacesArtifacts: true

0 comments on commit a1e4000

Please sign in to comment.