From 968a28fc23c11776b8391ac62044a186b4f4b7e0 Mon Sep 17 00:00:00 2001 From: Dmitry Borodin <11879032+Dmitry-Borodin@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:49:08 -0500 Subject: [PATCH] fix: android for release flow according issue discussion (#2319) * fix for release flow according issue discussion https://github.com/r0adkll/sign-android-release/issues/84 * removed extra line * hardcoded build tools to 34 * created extra step to find out latest built tools for signing apk --- .github/workflows/android-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index d918a9b8ac..5caac2416f 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -129,6 +129,13 @@ jobs: run: | ./gradlew clean assembleRelease --stacktrace + - 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 uses: r0adkll/sign-android-release@v1 # ID used to access action output @@ -139,6 +146,8 @@ jobs: alias: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }} keyStorePassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Upload Gplay release APKs uses: actions/upload-artifact@v3 @@ -156,4 +165,3 @@ jobs: track: internal -