Skip to content

Commit

Permalink
ci: Always use the latest Android build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrvolovyk authored Feb 3, 2024
1 parent 9a53fb9 commit 034af21
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ jobs:
if: success()
run: ./gradlew :app: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 release APK
if: success()
uses: r0adkll/sign-android-release@v1
Expand All @@ -77,6 +84,8 @@ jobs:
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Build release AAB
if: success()
Expand All @@ -92,6 +101,8 @@ jobs:
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Create CHANGELOG
id: changelog
Expand Down

0 comments on commit 034af21

Please sign in to comment.