Skip to content

Commit

Permalink
Specify build tools version, see r0adkll/sign-android-release#84
Browse files Browse the repository at this point in the history
  • Loading branch information
flauschtrud committed Apr 3, 2024
1 parent 0d986ef commit be466c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/fdroid-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
- name: Assemble Release
run: ./gradlew clean assembleFdroidRelease

- name: Setup Build Tools Version
shell: bash
run: |
BUILD_TOOLS_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOLS_VERSION=$BUILD_TOOLS_VERSION" >> $GITHUB_ENV
echo Last build tools version is: $BUILD_TOOLS_VERSION
- name: Sign Release
uses: r0adkll/sign-android-release@v1
id: sign_release
Expand All @@ -29,6 +36,8 @@ jobs:
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}

- name: Rename APK
run: mv ${{steps.sign_release.outputs.signedReleaseFile}} app/build/outputs/apk/fdroid/release/app-fdroid-release.apk
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/play-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
- name: Build Release Bundle with Gradle
run: ./gradlew clean bundlePlay -Pbase64EncodedPublicKey=${{secrets.PUBLIC_KEY}}

- name: Setup Build Tools Version
shell: bash
run: |
BUILD_TOOLS_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOLS_VERSION=$BUILD_TOOLS_VERSION" >> $GITHUB_ENV
echo Last build tools version is: $BUILD_TOOLS_VERSION
- name: Build Release
uses: r0adkll/sign-android-release@v1
with:
Expand All @@ -31,6 +38,8 @@ jobs:
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}

- name: Upload Android Release to Play Store
uses: r0adkll/[email protected]
Expand Down

0 comments on commit be466c8

Please sign in to comment.