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