File tree Expand file tree Collapse file tree 2 files changed +27
-10
lines changed
Expand file tree Collapse file tree 2 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,27 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - run : npm ci
15- - uses : FirebaseExtended/action-hosting-deploy@v0
14+ - name : Setup Flutter
15+ uses : subosito/flutter-action@v2
16+ with :
17+ flutter-version : ' 3.35.3'
18+ channel : ' stable'
19+ - name : Install dependencies
20+ run : |
21+ cd ui
22+ flutter pub get
23+ - name : Build Flutter web app
24+ run : |
25+ cd ui
26+ flutter build web --release
27+ - name : Deploy to Firebase Hosting
28+ uses : FirebaseExtended/action-hosting-deploy@v0
1629 with :
1730 repoToken : ${{ secrets.GITHUB_TOKEN }}
1831 firebaseServiceAccount : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UI_PROJ_A684B }}
1932 channelId : live
2033 projectId : ui-proj-a684b
34+ target : ui
35+ entryPoint : ui
2136 env :
2237 FIREBASE_CLI_EXPERIMENTS : webframeworks
Original file line number Diff line number Diff line change 2222 }
2323 },
2424 "hosting" : {
25- "source" : " ." ,
26- "ignore" : [
27- " firebase.json" ,
28- " **/.*" ,
29- " **/node_modules/**"
30- ],
31- "frameworksBackend" : {
32- "region" : " us-west1"
25+ "ui" : {
26+ "source" : " build/web" ,
27+ "ignore" : [
28+ " firebase.json" ,
29+ " **/.*" ,
30+ " **/node_modules/**"
31+ ],
32+ "frameworksBackend" : {
33+ "region" : " us-west1"
34+ }
3335 }
3436 }
3537}
You can’t perform that action at this time.
0 commit comments