This repository was archived by the owner on May 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-15
lines changed
Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Original file line number Diff line number Diff line change 11name : Generate APK Debug
22
33on :
4- # Triggers the workflow on push or pull request events but only for default and protected branches
54 push :
65 branches :
7- - master
6+ - ' *'
7+ paths-ignore :
8+ - ' **.md'
89 pull_request :
9- branches :
10- - master
10+ branches :
11+ - ' *'
12+ paths-ignore :
13+ - ' **.md'
14+ workflow_dispatch :
15+
1116jobs :
1217 build :
1318
1419 runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
22+ packages : write
1523
1624 steps :
17- - uses : actions/checkout@v3
25+ - name : Check out repository
26+ uses : actions/checkout@v3
27+ with :
28+ submodules : true
1829
19- - name : Set Up JDK
30+ - name : Set up Java 11
2031 uses : actions/setup-java@v3
2132 with :
22- distribution : ' zulu'
23- java-version : ' 11'
24-
33+ java-version : 11
34+ distribution : ' adopt'
35+ cache : gradle
36+
2537 - name : Change wrapper permissions
2638 run : chmod +x ./gradlew
2739
28- - name : Run tests
29- run : ./gradlew test
30-
31- # Create APK Debug
3240 - name : Build apk debug
3341 run : ./gradlew app:assembleDefaultDebug
3442
3543 - name : Build apk fdroid-debug
3644 run : ./gradlew app:assembleFdroidDebug
3745
38- # Upload Artifact Build
39- # Noted For Output [module-name]/build/outputs/apk
4046 - name : Upload apk debug
4147 uses : actions/upload-artifact@v3
4248 with :
You can’t perform that action at this time.
0 commit comments