File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on :
4+ push :
5+ paths :
6+ - ' .github/workflows/android.yml'
7+ - ' app/**'
8+ - ' gradle/**'
9+ - ' build.gradle'
10+ - ' gradle.properties'
11+ - ' gradlew'
12+ - ' gradlew.bat'
13+ - ' public-stable-ids.txt'
14+ - ' settings.gradle'
15+ pull_request :
16+ paths :
17+ - ' .github/workflows/android.yml'
18+ - ' app/**'
19+ - ' gradle/**'
20+ - ' build.gradle'
21+ - ' gradle.properties'
22+ - ' gradlew'
23+ - ' gradlew.bat'
24+ - ' public-stable-ids.txt'
25+ - ' settings.gradle'
26+ workflow_dispatch :
27+
28+ jobs :
29+ build :
30+ name : Build release APK
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v3
34+
35+ - name : Set up JDK 18
36+ uses : actions/setup-java@v3
37+ with :
38+ java-version : 18
39+ distribution : temurin
40+ cache : gradle
41+
42+ - name : Grant execute permissions for gradlew
43+ run : chmod +x gradlew
44+
45+ - name : Build release apk
46+ uses : gradle/gradle-build-action@v2
47+ with :
48+ arguments : assembleRelease
49+
50+ - name : Upload APK
51+ uses : actions/upload-artifact@v3
52+ with :
53+ name : apk-release
54+ path : app/build/outputs/apk/release
You can’t perform that action at this time.
0 commit comments