From 17bb0fc68a646dce910ac2af06d85ecb927f0e41 Mon Sep 17 00:00:00 2001 From: Andrew Mikhail Date: Sun, 7 Sep 2025 21:09:45 -0700 Subject: [PATCH 1/2] Fixed UI workflow --- .github/workflows/firebase-hosting-merge.yml | 25 ++++++++++- ui/.firebaserc | 14 +++++- ui/firebase.json | 46 +++++++------------- 3 files changed, 50 insertions(+), 35 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 4fe9c4f..65d3581 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -11,12 +11,33 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci - - uses: FirebaseExtended/action-hosting-deploy@v0 + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.35.3' + channel: 'stable' + - name: Install dependencies + run: | + cd ui + flutter pub get + - name: Build Flutter web app + run: | + cd ui + flutter build web --release + - name: Configure Firebase target + run: | + cd ui + npx firebase-tools@latest target:apply hosting ui ui-proj-a684b + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UI_PROJ_A684B }} + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UI_PROJ_A684B }} channelId: live projectId: ui-proj-a684b + target: ui + entryPoint: ui env: FIREBASE_CLI_EXPERIMENTS: webframeworks diff --git a/ui/.firebaserc b/ui/.firebaserc index 8e1875d..a614a16 100644 --- a/ui/.firebaserc +++ b/ui/.firebaserc @@ -1,5 +1,15 @@ { "projects": { "default": "ui-proj-a684b" - } -} + }, + "targets": { + "ui-proj-a684b": { + "hosting": { + "ui": [ + "ui-proj-a684b" + ] + } + } + }, + "etags": {} +} \ No newline at end of file diff --git a/ui/firebase.json b/ui/firebase.json index 6b6b8c2..75b76c4 100644 --- a/ui/firebase.json +++ b/ui/firebase.json @@ -1,35 +1,19 @@ { - "flutter": { - "platforms": { - "macos": { - "default": { - "projectId": "ui-proj-a684b", - "appId": "1:548317788995:ios:91bde8a7b93af4c7e00df6", - "uploadDebugSymbols": false, - "fileOutput": "macos/Runner/GoogleService-Info.plist" + "hosting": [ + { + "target": "ui", + "public": "build/web", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" } - }, - "dart": { - "lib/firebase_options.dart": { - "projectId": "ui-proj-a684b", - "configurations": { - "macos": "1:548317788995:ios:91bde8a7b93af4c7e00df6", - "web": "1:548317788995:web:5c7568a1a8cccb7fe00df6", - "windows": "1:548317788995:web:b248d7f6143fbfe1e00df6" - } - } - } - } - }, - "hosting": { - "source": ".", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "frameworksBackend": { - "region": "us-west1" + ] } - } + ] } From 594bd893f3bbbab28f73ae6dbab8c43c09561a31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 05:16:25 +0000 Subject: [PATCH 2/2] Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 65d3581..8809c1e 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -10,7 +10,7 @@ jobs: build_and_deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Setup Flutter uses: subosito/flutter-action@v2 with: diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 596b52c..ea65dfd 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -12,7 +12,7 @@ jobs: if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - run: npm ci - uses: FirebaseExtended/action-hosting-deploy@v0 with: