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 -