File tree Expand file tree Collapse file tree 1 file changed +3
-33
lines changed Expand file tree Collapse file tree 1 file changed +3
-33
lines changed Original file line number Diff line number Diff line change 3
3
# separate terms of service, privacy policy, and support
4
4
# documentation.
5
5
6
- name : Flutter analyze, test & deploy example web app
6
+ name : Flutter Web deploy Example to Firebase Hosting
7
7
8
8
on :
9
9
push :
10
- branches : [ "master" ]
11
- pull_request :
12
- branches : [ "master" ]
10
+ branches : [ "prod" ]
13
11
14
12
workflow_dispatch :
15
13
16
14
env :
17
15
FLUTTER_VERSION : 3.27.4
18
16
19
17
jobs :
20
- build :
21
- runs-on : ubuntu-latest
22
-
23
- steps :
24
- - name : Checkout code
25
- uses : actions/checkout@v3
26
-
27
- - name : Install Flutter
28
- uses : subosito/flutter-action@v2
29
- with :
30
- flutter-version : ${{ env.FLUTTER_VERSION }}
31
- channel : ' stable'
32
- cache : true
33
-
34
- - run : flutter --version
35
-
36
- - name : Install dependencies
37
- run : flutter pub get
38
-
39
- - name : Analyze project source
40
- run : flutter analyze
41
-
42
- - name : Run tests
43
- run : flutter test --coverage
44
-
45
- deploy-example-web :
18
+ deploy :
46
19
runs-on : ubuntu-latest
47
20
needs : build
48
21
61
34
- run : flutter config --enable-web
62
35
- run : cd ./example; flutter build web --release --target=lib/main.dart --output=build/web
63
36
64
- # - name: Update service worker
65
- # run: cat ./example/service-worker/twilio-sw.js >> ./example/build/web/flutter_service_worker.js
66
-
67
37
- name : Archive Production Artifact
68
38
uses : actions/upload-artifact@master
69
39
with :
You can’t perform that action at this time.
0 commit comments