File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11# Android Auto-Build APK
22
3- This is an example of how to build an APK using GitHub Actions.
4- Here, we created a simple Android application that displays a Hello World!.
3+ This is an example of how to build an APK using GitHub Actions.
4+ Here, we created a simple Android application that displays a Hello World!.
55We then created a workflow that builds the APK and uploads it as a new release.
66
7-
87| Hello World! |
98| :---: |
109| ![ ] ( screenshots/1.png ) |
1110
12-
13-
14-
1511## How to use
1612
1713``` yml
14+ name : Build project after push
15+
1816on :
1917 push :
2018 branches :
2119 - main
22- name : Build project after push
2320jobs :
2421 build :
2522 runs-on : ubuntu-latest
23+
2624 steps :
2725 - uses : actions/checkout@v3
26+
2827 - name : set up JDK 11
2928 uses : actions/setup-java@v3
3029 with :
3433
3534 - name : Grant execute permission for gradlew
3635 run : chmod +x gradlew
36+
3737 - name : Build with Gradle
3838 run : ./gradlew build
39+
3940 - name : Build debug APK
4041 run : bash ./gradlew assembleDebug --stacktrace
4142
You can’t perform that action at this time.
0 commit comments