Skip to content

Commit

Permalink
Fix gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderRedYT committed Feb 1, 2024
1 parent 2b17fed commit 6e9c660
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,18 @@ jobs:
- name: Make Gradlew executable
run: cd android && chmod +x ./gradlew

- 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: Build Android
run: |
cd android
./gradlew assembleRelease --no-daemon --info
for f in app/build/outputs/apk/release/*-unsigned.apk; do mv "$f" "${f%-unsigned.apk}.apk"; done
for f in app/build/outputs/apk/release/*-unsigned.apk; do mv "$f" "${f%-unsigned.apk}.apk"; done
- name: Sign App Bundle
id: sign_app
Expand All @@ -78,6 +85,8 @@ jobs:
alias: ${{ secrets.ANDROID_SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Remove unuseful files
run:
Expand Down

0 comments on commit 6e9c660

Please sign in to comment.