diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eefc7a9f8..983e97c81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -629,6 +629,13 @@ jobs: - name: Build APK (not usable for production due to unpatched QT library) run: cd src; androiddeployqt --input android-qdomyos-zwift-deployment-settings.json --output ${{ github.workspace }}/output/android/ --android-platform android-31 --gradle --aab --release + - 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 name: Sign app APK # ID used to access action output @@ -639,6 +646,8 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Deploy to Play Store uses: r0adkll/upload-google-play@v1