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 : Android CI
1+ name : Build APK
22
33on :
44 push :
5- branches : [ " main" ]
5+ branches : [ main ]
66 pull_request :
7- branches : [ " main" ]
7+ branches : [ main ]
88
99jobs :
1010 build :
1111
1212 runs-on : ubuntu-latest
1313
1414 steps :
15- - uses : actions/checkout@v4
16- - name : set up JDK 11
17- uses : actions/setup-java@v4
15+ - name : Checkout source
16+ uses : actions/checkout@v3
17+
18+ - name : Set up JDK
19+ uses : actions/setup-java@v3
1820 with :
19- java-version : ' 11'
2021 distribution : ' temurin'
21- cache : gradle
22-
23- - name : Grant execute permission for gradlew
24- run : |
25-
26- chmod +x gradlew
27- - name : Build with Gradle
28- run : |
29-
30- ./gradlew build
22+ java-version : ' 17'
23+
24+ - name : Make gradlew executable
25+ run : chmod +x ./gradlew
26+
27+ - name : Build APK
28+ run : ./gradlew assembleDebug
29+
30+ - name : Upload APK
31+ uses : actions/upload-artifact@v3
32+ with :
33+ name : apk
34+ path : app/build/outputs/apk/debug/app-debug.apk
You can’t perform that action at this time.
0 commit comments