From 7e877448845a7366ce758a81e96a984ec28e5d41 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 7 May 2024 21:00:42 +0200 Subject: [PATCH] Fix CI APK release process --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0429db1..6e8b8f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,15 @@ jobs: name: unsigned-app.apk path: . - - uses: r0adkll/sign-android-release@v1 - name: Sign the APK + - name: Detect latest build tool version + 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 Latest build tool version is: $BUILD_TOOL_VERSION + + - name: Sign the APK + uses: r0adkll/sign-android-release@v1 id: sign_app with: releaseDirectory: . @@ -45,6 +52,8 @@ jobs: alias: ${{ secrets.SIGNING_KEY_ALIAS }} keyStorePassword: ${{ secrets.SIGNING_KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Publish the APK to GitHub Releases uses: svenstaro/upload-release-action@v2