File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 44
44
web :
45
45
name : Web
46
46
runs-on : ubuntu-latest
47
+ permissions :
48
+ contents : read
49
+ pages : write
50
+ id-token : write
51
+ environment :
52
+ name : github-pages
53
+ url : ${{ steps.deployment.outputs.page_url }}
47
54
steps :
48
55
- name : Set up Flutter
49
56
uses : subosito/flutter-action@v2
55
62
with :
56
63
path : " app"
57
64
65
+ - name : Setup Pages
66
+ uses : actions/configure-pages@v5
67
+
58
68
- name : Build web release
59
69
run : |
60
70
cd app
67
77
cd app
68
78
cp privacy-policy/index.html build/web/privacy-policy.html
69
79
80
+ # Deploy to Firebase
70
81
- name : Deploy to Firebase
71
82
uses : w9jds/firebase-action@master
72
83
with :
75
86
PROJECT_PATH : " app"
76
87
GCP_SA_KEY : ${{ secrets.GCP_SA_KEY }}
77
88
89
+ # GitHub Pages deployment steps
90
+ - name : Upload artifact for GitHub Pages
91
+ uses : actions/upload-pages-artifact@v3
92
+ with :
93
+ path : app/build/web
94
+
95
+ - name : Deploy to GitHub Pages
96
+ id : deployment
97
+ uses : actions/deploy-pages@v4
98
+
78
99
android :
79
100
name : Android
80
101
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments