File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android build (Release)
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ build_release :
9
+ name : Build Android Example App (release)
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - name : Use Node.js 20.x
14
+ uses : actions/setup-node@v4
15
+ with :
16
+ node-version : 20.x
17
+ - uses : actions/setup-java@v2
18
+ with :
19
+ distribution : ' temurin'
20
+ java-version : ' 17'
21
+
22
+ - name : Restore yarn workspaces
23
+ id : yarn-cache
24
+ uses : actions/cache@v3
25
+ with :
26
+ path : |
27
+ node_modules
28
+ */*/node_modules
29
+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
30
+
31
+ - name : Install dependencies
32
+ run : yarn install
33
+ - name : Install example app dependencies
34
+ run : yarn install
35
+ working-directory : example
36
+
37
+ - name : Build android example app with new arch disabled
38
+ run : ./gradlew assembleRelease -PnewArchEnabled=false
39
+ working-directory : example/android
40
+
41
+ - name : Upload APK to Release
42
+ uses : actions/upload-release-asset@v1
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ with :
46
+ upload_url : ${{ github.event.release.upload_url }}
47
+ asset_path : example/android/app/build/outputs/apk/release/app-release.apk
48
+ asset_name : " SafeAreaExample-${{ github.event.release.tag_name }}.apk"
49
+ asset_content_type : application/vnd.android.package-archive
50
+
51
+ # Gradle cache doesn't like daemons
52
+ - name : Stop Gradle Daemon
53
+ working-directory : example/android
54
+ run : ./gradlew --stop
You can’t perform that action at this time.
0 commit comments