File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " version number for this release."
8+ required : true
9+
10+ jobs :
11+ build :
12+ name : Build release apk
13+ runs-on : ubuntu-latest
14+ steps :
15+ 16+
17+ - name : set up JDK 11
18+ 19+ with :
20+ java-version : ' 11'
21+ distribution : ' adopt'
22+ cache : gradle
23+
24+ - name : Grant execute permission for gradlew
25+ run : chmod +x gradlew
26+
27+ - name : Build release apk
28+ 29+ with :
30+ arguments : assembleRelease
31+ distributions-cache-enabled : true
32+ dependencies-cache-enabled : true
33+ configuration-cache-enabled : true
34+
35+ - name : Push tag
36+ run : |
37+ git push origin "v${{ github.event.inputs.version }}"
38+
39+ - name : Add apk to release entry
40+ 41+ with :
42+ draft : true
43+ name : ${{ github.event.input.version }}
44+ tag_name : " v${{ github.event.inputs.version }}"
45+ target_commitish : ${{ env.TARGET_COMMITISH }}
46+ files : app/build/outputs/apk/release/app-release.apk
You can’t perform that action at this time.
0 commit comments