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 33# separate terms of service, privacy policy, and support
44# documentation.
55
6- name : Flutter analyze, test & deploy example web app
6+ name : Flutter Web deploy Example to Firebase Hosting
77
88on :
99 push :
10- branches : [ "master" ]
11- pull_request :
12- branches : [ "master" ]
10+ branches : [ "prod" ]
1311
1412 workflow_dispatch :
1513
1614env :
1715 FLUTTER_VERSION : 3.27.4
1816
1917jobs :
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 :
4619 runs-on : ubuntu-latest
4720 needs : build
4821
6134 - run : flutter config --enable-web
6235 - run : cd ./example; flutter build web --release --target=lib/main.dart --output=build/web
6336
64- # - name: Update service worker
65- # run: cat ./example/service-worker/twilio-sw.js >> ./example/build/web/flutter_service_worker.js
66-
6737 - name : Archive Production Artifact
6838 uses : actions/upload-artifact@master
6939 with :
You can’t perform that action at this time.
0 commit comments