Skip to content

Commit

Permalink
created extra step to find out latest built tools for signing apk
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Borodin committed Jan 31, 2024
1 parent 8228077 commit bc4759e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ jobs:
run: |
./gradlew clean assembleRelease --stacktrace
- 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
Expand All @@ -140,7 +147,7 @@ jobs:
keyStorePassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_PLAY_STORE_KEYSTORE_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Upload Gplay release APKs
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit bc4759e

Please sign in to comment.