File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 10
10
default : android
11
11
options :
12
12
- android
13
+ - android-release-apk
13
14
- ios-registered-devices
14
15
- ios-testflight
15
16
39
40
if : ${{ github.event.inputs.platform == 'ios-testflight' }}
40
41
working-directory : apps/mobile-wallet
41
42
run : eas build --platform=ios --profile=production --non-interactive --wait --auto-submit
43
+
44
+ - name : 🤖 Build and submit Android release APK
45
+ if : ${{ github.event.inputs.platform == 'android-release-apk' }}
46
+ working-directory : apps/mobile-wallet
47
+ run : eas build --platform=android --profile=release-apk --non-interactive --wait --local --output=app-release.apk
48
+
49
+ - name : Create Release
50
+ if : ${{ github.event.inputs.platform == 'android-release-apk' }}
51
+ id : create_release
52
+ uses : actions/create-release@v1
53
+ env :
54
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ with :
56
+ tag_name : ${{ github.ref_name }}
57
+ release_name : ${{ github.ref_name }}
58
+ draft : true
59
+ prerelease : false
60
+
61
+ - name : Upload APK asset
62
+ if : ${{ github.event.inputs.platform == 'android-release-apk' }}
63
+ uses : actions/upload-release-asset@v1
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ with :
67
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
68
+ asset_path : app-release.apk
69
+ asset_name : app-release.apk
70
+ asset_content_type : application/vnd.android.package-archive
Original file line number Diff line number Diff line change 14
14
"internal" : {
15
15
"extends" : " production" ,
16
16
"distribution" : " internal"
17
+ },
18
+ "release-apk" : {
19
+ "extends" : " production" ,
20
+ "autoIncrement" : false ,
21
+ "android" : {
22
+ "buildType" : " apk"
23
+ }
17
24
}
18
25
},
19
26
"submit" : {
You can’t perform that action at this time.
0 commit comments