Skip to content

Commit 2dab7e5

Browse files
committed
Fixed UI workflow
1 parent 9bcece0 commit 2dab7e5

File tree

2 files changed

+29
-33
lines changed

2 files changed

+29
-33
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: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
11
{
2-
"flutter": {
3-
"platforms": {
4-
"macos": {
5-
"default": {
6-
"projectId": "ui-proj-a684b",
7-
"appId": "1:548317788995:ios:91bde8a7b93af4c7e00df6",
8-
"uploadDebugSymbols": false,
9-
"fileOutput": "macos/Runner/GoogleService-Info.plist"
10-
}
11-
},
12-
"dart": {
13-
"lib/firebase_options.dart": {
14-
"projectId": "ui-proj-a684b",
15-
"configurations": {
16-
"macos": "1:548317788995:ios:91bde8a7b93af4c7e00df6",
17-
"web": "1:548317788995:web:5c7568a1a8cccb7fe00df6",
18-
"windows": "1:548317788995:web:b248d7f6143fbfe1e00df6"
19-
}
20-
}
2+
"hosting": [
3+
{
4+
"target": "ui",
5+
"source": "build/web",
6+
"ignore": [
7+
"firebase.json",
8+
"**/.*",
9+
"**/node_modules/**"
10+
],
11+
"frameworksBackend": {
12+
"region": "us-west1"
2113
}
2214
}
23-
},
24-
"hosting": {
25-
"source": ".",
26-
"ignore": [
27-
"firebase.json",
28-
"**/.*",
29-
"**/node_modules/**"
30-
],
31-
"frameworksBackend": {
32-
"region": "us-west1"
33-
}
34-
}
15+
]
3516
}

0 commit comments

Comments
 (0)