File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 if [ ! -f "gradlew" ]; then
2323 echo "Gradle wrapper missing, generating..."
2424 wget https://services.gradle.org/distributions/gradle-9.4.1-bin.zip
25- unzip -q gradle-9.4.1/ bin.zip
25+ unzip -q gradle-9.4.1- bin.zip
2626 ./gradle-9.4.1/bin/gradle wrapper --gradle-version 9.4.1
2727 else
2828 echo "Gradle wrapper already exists"
3737 java-version : ' 17'
3838 distribution : ' temurin'
3939
40- # IMPROVEMENT: Cache Gradle dependencies to speed up future builds
41- - name : Cache Gradle packages
42- uses : actions/cache@v4
43- with :
44- path : |
45- ~/.gradle/caches
46- ~/.gradle/wrapper
47- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
48- restore-keys : |
49- ${{ runner.os }}-gradle-
50-
5140 - name : Build Debug APK
52- run : ./gradlew assembleDebug --stacktrace
41+ run : ./gradlew assembleDebug
5342
5443 - name : Prepare beta builds folder
5544 run : |
6352
6453 - name : Commit APK
6554 run : |
66- git config user.name "github-actions[bot] "
67- git config user.email "github-actions[bot]@users.noreply. github.com"
55+ git config user.name "github-actions"
56+ git config user.email "github-actions@ github.com"
6857 git add beta-builds/app-debug.apk
69- git commit -m "chore: create beta build APK [skip ci] " || echo "No changes to commit"
58+ git commit -m "create beta build APK" || echo "No changes to commit"
7059 git push
You can’t perform that action at this time.
0 commit comments