Skip to content

Commit 6e9c660

Browse files
Fix gitlab CI
1 parent 2b17fed commit 6e9c660

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,18 @@ jobs:
6363
- name: Make Gradlew executable
6464
run: cd android && chmod +x ./gradlew
6565

66+
- name: Setup build tool version variable
67+
shell: bash
68+
run: |
69+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
70+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
71+
echo Last build tool version is: $BUILD_TOOL_VERSION
72+
6673
- name: Build Android
6774
run: |
6875
cd android
6976
./gradlew assembleRelease --no-daemon --info
70-
for f in app/build/outputs/apk/release/*-unsigned.apk; do mv "$f" "${f%-unsigned.apk}.apk"; done
77+
for f in app/build/outputs/apk/release/*-unsigned.apk; do mv "$f" "${f%-unsigned.apk}.apk"; done
7178
7279
- name: Sign App Bundle
7380
id: sign_app
@@ -78,6 +85,8 @@ jobs:
7885
alias: ${{ secrets.ANDROID_SIGNING_ALIAS }}
7986
keyStorePassword: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
8087
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
88+
env:
89+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
8190

8291
- name: Remove unuseful files
8392
run:

0 commit comments

Comments
 (0)