File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change 15
15
FLUTTER_VERSION : 3.27.4
16
16
17
17
jobs :
18
- deploy :
18
+ build :
19
19
runs-on : ubuntu-latest
20
- needs : build
21
20
22
21
steps :
23
- - uses : actions/checkout@v2
22
+ - name : Checkout code
23
+ uses : actions/checkout@v4
24
24
25
- - name : Setup Flutter build environment
25
+ - name : Install Flutter
26
26
uses : subosito/flutter-action@v2
27
27
with :
28
28
flutter-version : ${{ env.FLUTTER_VERSION }}
29
29
channel : ' stable'
30
30
cache : true
31
31
32
32
- run : flutter --version
33
- - run : flutter pub get
34
- - run : flutter config --enable-web
35
- - run : cd ./example; flutter build web --release --target=lib/main.dart --output=build/web
33
+
34
+ - name : Install dependencies
35
+ run : flutter pub get
36
+
37
+ - name : Enable web support
38
+ run : flutter config --enable-web
39
+
40
+ - name : Create web build with release mode
41
+ run : cd ./example; flutter build web --release --target=lib/main.dart
36
42
37
43
- name : Archive Production Artifact
38
- uses : actions/upload-artifact@master
44
+ uses : actions/upload-artifact@v4
39
45
with :
40
46
name : web-build
41
47
path : example/build/web
42
48
49
+ deploy :
50
+ runs-on : ubuntu-latest
51
+ needs : build
52
+ steps :
53
+ # - uses: actions/checkout@v4
54
+
55
+ - name : Download Production Artifact
56
+ uses : actions/download-artifact@v4
57
+ with :
58
+ name : web-build
59
+
43
60
- name : Firebase Deploy
44
61
uses : FirebaseExtended/action-hosting-deploy@v0
45
62
with :
You can’t perform that action at this time.
0 commit comments