File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Publish Release APK
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ Gradle :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : checkout code
13+ uses : actions/checkout@v2
14+ - name : setup jdk
15+ uses : actions/setup-java@v1
16+ with :
17+ java-version : 11
18+ - name : Make Gradle executable
19+ run : chmod +x ./gradlew
20+ - name : Build Release APK
21+ run : ./gradlew assembleRelease
22+ - name : Releasing using Hub
23+ uses : kyze8439690/action-release-releaseapk@master
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
26+ APP_FOLDER : app
Original file line number Diff line number Diff line change 3434 run : |
3535 echo Add other actions to build,
3636 echo test, and deploy your project.
37+ apk :
38+ name : Generate APK
39+ needs : build
40+ runs-on : ubuntu-latest
41+ steps :
42+ - name : Checkout
43+ uses : actions/checkout@v1
44+ - name : Setup JDK
45+ uses : actions/setup-java@v1
46+ with :
47+ java-version : 1.8
48+ - name : Build APK
49+ run : bash ./gradlew assembleDebug --stacktrace
50+ - name : Upload APK
51+ uses : actions/upload-artifact@v1
52+ with :
53+ name : apk
54+ path : app/build/outputs/apk/debug/app-debug.apk
You can’t perform that action at this time.
0 commit comments