diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index dc8e2f5..c377891 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -27,6 +27,13 @@ jobs: with: name: App bundle path: app-debug.apk + # https://github.com/r0adkll/sign-android-release/issues/84#issuecomment-1889636075 + - 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 - uses: r0adkll/sign-android-release@v1 if: github.event_name != 'pull_request' name: Sign app APK @@ -36,6 +43,8 @@ jobs: signingKeyBase64: ${{ secrets.SIGNING_KEY }} alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - uses: actions/upload-artifact@v4 if: github.event_name != 'pull_request' name: Upload signed app APK