From bf023d1f14cbed1291d47a127e6fb39e4a968b11 Mon Sep 17 00:00:00 2001 From: evermind Date: Wed, 31 Jan 2024 01:14:44 +0100 Subject: [PATCH] fix zipalign not found in release workflow Github removed older buildtools version. This fix tries to always use the latest version available see https://github.com/r0adkll/sign-android-release/issues/84 --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7a052740..dd528ce11 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,13 @@ jobs: - name: build release run: ./gradlew assembleRelease + - 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: Sign app APK brave uses: r0adkll/sign-android-release@v1 # ID used to access action output @@ -61,6 +68,8 @@ jobs: alias: alias_name keyStorePassword: ${{ secrets.RELEASE_KEYSTORE_PASS }} #keyPassword: ${{ secrets.RELEASE_KEYSTORE_PASS }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Sign app APK braveConscrypt uses: r0adkll/sign-android-release@v1 @@ -73,6 +82,8 @@ jobs: alias: alias_name keyStorePassword: ${{ secrets.RELEASE_KEYSTORE_PASS }} #keyPassword: ${{ secrets.RELEASE_KEYSTORE_PASS }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Upload brave artifact APK uses: actions/upload-artifact@v3