From bc4759e9c4de7e1814ba52191802b2bb3dc988f5 Mon Sep 17 00:00:00 2001 From: Dmitry Borodin Date: Wed, 31 Jan 2024 19:01:31 +0100 Subject: [PATCH] created extra step to find out latest built tools for signing apk --- .github/workflows/android-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index f3573ee57e..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 @@ -140,7 +147,7 @@ jobs: keyStorePassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }} env: - BUILD_TOOLS_VERSION: "34.0.0" + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Upload Gplay release APKs uses: actions/upload-artifact@v3