File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Upload APK Artifact
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - develop
8+ pull_request :
9+ branches :
10+ - main
11+ - develop
12+ workflow_dispatch :
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+
22+ - name : Set up JDK 17
23+ uses : actions/setup-java@v4
24+ with :
25+ java-version : ' 17'
26+ distribution : ' temurin'
27+ cache : gradle
28+
29+ - name : Grant execute permission for gradlew
30+ run : chmod +x gradlew
31+
32+ - name : Build APK
33+ run : ./gradlew assembleRelease
34+
35+ - name : Upload APK to artifacts
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : android-apk
39+ path : app/build/outputs/apk/release/*.apk
40+ retention-days : 30
41+
42+ - name : List APK files
43+ run : find app/build/outputs -name "*.apk" -type f
You can’t perform that action at this time.
0 commit comments