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 : Build APK
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ workflow_dispatch :
8+ release :
9+ types : [ published ]
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK 17
20+ uses : actions/setup-java@v4
21+ with :
22+ distribution : temurin
23+ java-version : ' 17'
24+
25+ - name : Set up Android SDK
26+ uses : android-actions/setup-android@v3
27+
28+ - name : Set up Gradle
29+ uses : gradle/actions/setup-gradle@v4
30+ with :
31+ gradle-version : ' 8.7'
32+
33+ - name : Build APK
34+ run : gradle assembleDebug --no-daemon --stacktrace
35+
36+ - name : Upload APK
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : arklight-viewer-apk
40+ path : app/build/outputs/apk/debug/*.apk
41+
42+ - name : Attach APK to GitHub Release
43+ if : github.event_name == 'release'
44+ uses : softprops/action-gh-release@v2
45+ with :
46+ files : app/build/outputs/apk/debug/*.apk
You can’t perform that action at this time.
0 commit comments