Skip to content

Commit f086dc6

Browse files
committed
Fixed UI workflow
1 parent 9bcece0 commit f086dc6

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

.github/workflows/firebase-hosting-merge.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff 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

ui/firebase.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
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
}

0 commit comments

Comments
 (0)