From a2a47ce74e1f41b8fb4a341134ebbca9e2857cae Mon Sep 17 00:00:00 2001 From: meiron03 Date: Sun, 28 Jan 2024 13:15:30 -0500 Subject: [PATCH] Update android-workflow.yaml https://github.com/r0adkll/sign-android-release/issues/84 --- .github/workflows/android-workflow.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/android-workflow.yaml b/.github/workflows/android-workflow.yaml index 76c982f2..8e4edbb6 100644 --- a/.github/workflows/android-workflow.yaml +++ b/.github/workflows/android-workflow.yaml @@ -80,6 +80,13 @@ jobs: - name: Generate Release APK 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 uses: r0adkll/sign-android-release@v1 # ID used to access action output @@ -90,6 +97,8 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} # Upload signed APK - uses: actions/upload-artifact@v2