6
6
name : Release Builds
7
7
jobs :
8
8
linux :
9
- name : Android & Linux & Web
9
+ name : Linux
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- run : |
13
13
git clone https://github.com/flutter/flutter.git
14
14
cd flutter
15
- git checkout 4df8fdb7df
15
+ git checkout 5663e02645
16
16
- run : echo ::add-path::`pwd`"/flutter/bin"
17
-
18
- - uses : actions/setup-java@v1
19
- with :
20
- java-version : ' 12.x'
21
-
22
17
- uses : actions/checkout@v2
23
18
with :
24
19
path : ' app'
25
-
26
20
- run : |
27
21
cd app
28
22
flutter config --enable-linux-desktop
29
- flutter config --enable-web
30
23
flutter pub get
31
24
flutter build linux --release
32
- flutter build apk -t lib/main.mobile.dart --release
33
- flutter build web -t lib/main.mobile.dart --release
34
25
cd build/linux/
35
26
zip -r linux-release.zip release
27
+ - name : Create Android & linux Release
28
+ uses : ncipollo/release-action@v1
29
+ with :
30
+ artifacts : ' app/build/linux/linux-release.zip'
31
+ token : ${{ secrets.TOKEN }}
32
+ allowUpdates : true
36
33
37
- # - run: |
38
- # cd app
39
- # npm i
40
- # npm run upload apk ${{ secrets.ACCOUNT }}
41
- # npm run upload linux ${{ secrets.ACCOUNT }}
34
+ web :
35
+ name : Web
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - run : |
39
+ git clone https://github.com/flutter/flutter.git
40
+ cd flutter
41
+ git checkout 5663e02645
42
+ - run : echo ::add-path::`pwd`"/flutter/bin"
43
+ - uses : actions/checkout@v2
44
+ with :
45
+ path : ' app'
42
46
47
+ - run : |
48
+ cd app
49
+ flutter config --enable-web
50
+ flutter pub get
51
+ flutter build web -t lib/main.mobile.dart --release
43
52
- name : Deploy to Firebase
44
53
uses : w9jds/firebase-action@v1.3.0
45
54
with :
@@ -48,10 +57,29 @@ jobs:
48
57
PROJECT_PATH : ' app'
49
58
FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
50
59
60
+ android :
61
+ name : Android
62
+ runs-on : ubuntu-latest
63
+ steps :
64
+ - run : |
65
+ git clone https://github.com/flutter/flutter.git
66
+ cd flutter
67
+ git checkout 5663e02645
68
+ - run : echo ::add-path::`pwd`"/flutter/bin"
69
+ - uses : actions/setup-java@v1
70
+ with :
71
+ java-version : ' 12.x'
72
+ - uses : actions/checkout@v2
73
+ with :
74
+ path : ' app'
75
+ - run : |
76
+ cd app
77
+ flutter pub get
78
+ flutter build apk -t lib/main.mobile.dart --release
51
79
- name : Create Android & linux Release
52
80
uses : ncipollo/release-action@v1
53
81
with :
54
- artifacts : ' app/build/app/outputs/apk/release/app-release.apk,app/build/linux/linux-release.zip '
82
+ artifacts : ' app/build/app/outputs/apk/release/app-release.apk'
55
83
token : ${{ secrets.TOKEN }}
56
84
allowUpdates : true
57
85
@@ -62,26 +90,18 @@ jobs:
62
90
- run : |
63
91
git clone https://github.com/flutter/flutter.git
64
92
cd flutter
65
- git checkout 4df8fdb7df
93
+ git checkout 5663e02645
66
94
- run : echo ::add-path::`pwd`"/flutter/bin"
67
-
68
95
- uses : actions/checkout@v2
69
96
with :
70
97
path : ' app'
71
-
72
98
- run : |
73
99
cd app
74
100
flutter config --enable-macos-desktop
75
101
flutter pub get
76
102
flutter build macos --release
77
103
cd build/macos/Build/Products/Release
78
104
ditto -c -k --sequesterRsrc --keepParent flutter_uis.app macos-release.zip
79
-
80
- # - run: |
81
- # cd app
82
- # npm i
83
- # npm run upload macos ${{ secrets.ACCOUNT }}
84
-
85
105
- uses : ncipollo/release-action@v1
86
106
with :
87
107
artifacts : ' app/build/macOS/Build/Products/Release/macos-release.zip'
@@ -95,27 +115,18 @@ jobs:
95
115
- run : |
96
116
git clone https://github.com/flutter/flutter.git
97
117
cd flutter
98
- git checkout 4df8fdb7df
118
+ git checkout 5663e02645
99
119
- run : echo ::add-path::"$(pwd)\flutter\bin"
100
-
101
120
- uses : actions/checkout@v2
102
121
with :
103
122
path : ' app'
104
-
105
123
- run : |
106
124
cd app
107
125
flutter config --enable-windows-desktop
108
126
flutter pub get
109
127
flutter build windows --release
110
128
cd build\windows\x64\Release
111
129
Compress-Archive -Path Runner -DestinationPath windows-release.zip
112
-
113
- # Windows prints the secret variable in log taht's why It's disabled for now
114
- # - run: |
115
- # cd app
116
- # npm i
117
- # npm run upload windows ${{ secrets.ACCOUNT }}
118
-
119
130
- name : Windows release build for github
120
131
uses : ncipollo/release-action@v1
121
132
with :
0 commit comments