Skip to content

Commit 1371f6d

Browse files
committed
fix: detectar dinámicamente build-tools en el workflow de release
1 parent bf6a614 commit 1371f6d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- name: Build Release APK
2828
run: ./gradlew assembleRelease
2929

30+
- name: Setup build tool version variable
31+
shell: bash
32+
run: |
33+
BUILD_TOOL_VERSION=$(ls $ANDROID_SDK_ROOT/build-tools/ | tail -n 1)
34+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
35+
3036
- name: Sign APK
3137
uses: r0adkll/sign-android-release@v1
3238
id: sign_app
@@ -36,6 +42,7 @@ jobs:
3642
alias: ${{ secrets.ALIAS }}
3743
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
3844
keyPassword: ${{ secrets.KEY_PASSWORD }}
45+
buildToolsVersion: ${{ env.BUILD_TOOL_VERSION }}
3946

4047
- name: Create GitHub Release
4148
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)