File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Release APK
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ pull_request :
6
+ branches : [ main ]
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+
15
+ - name : Set Up JDK
16
+ uses : actions/setup-java@v3
17
+ with :
18
+ distribution : zulu
19
+ java-version : 18
20
+
21
+ - name : Cache Gradle and wrapper
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : |
25
+ ~/.gradle/caches
26
+ ~/.gradle/wrapper
27
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-gradle-
30
+
31
+ - name : Grant execute permission for gradlew
32
+ run : chmod +x ./gradlew
33
+
34
+ - name : Build Release APK
35
+ run : ./gradlew assembleRelease
36
+
37
+ - name : Generate build number
38
+ id : buildnumber
39
+ uses : einaregilsson/build-number@v3
40
+ with :
41
+ token : ${{secrets.TOKEN}}
42
+
43
+ - name : Push to Releases
44
+ uses : ncipollo/release-action@v1
45
+ with :
46
+ artifacts : " app/build/outputs/apk/release/*"
47
+ tag : build-${{ steps.buildnumber.outputs.build_number }}
48
+ token : ${{ secrets.TOKEN }}
Original file line number Diff line number Diff line change 12
12
.DS_Store
13
13
/build
14
14
/captures
15
- /.github
16
15
/firebase /* .json
17
16
/firebase /config.py
18
17
/firebase /assets /*
You can’t perform that action at this time.
0 commit comments