From e6e94cb955d6e08654d1d42377dd39b5a6bf3f29 Mon Sep 17 00:00:00 2001 From: Acho Arnold Ewin Date: Tue, 17 Nov 2026 02:58:29 +0200 Subject: [PATCH] refactor(ci): split frontend deployments into explicit jobs Replace the provider matrix with separate Cloudflare and Firebase jobs. Both download the same build and run in parallel after API deployment and web build succeed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a0fd7292-f3aa-4919-929f-d73c2ac0f0c2 --- .github/workflows/ci.yaml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ea751c2d..77aa77e19 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -187,19 +187,14 @@ jobs: if-no-files-found: error retention-days: 1 - deploy-web: - name: Deploy Web (${{ matrix.provider }}) + deploy-web-cloudflare: + name: Deploy Web to Cloudflare needs: [deploy-api, build-web] if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-26.04 permissions: contents: read - pull-requests: write deployments: write - strategy: - fail-fast: false - matrix: - provider: [Cloudflare, Firebase] steps: - name: Checkout Code uses: actions/checkout@v7 @@ -216,7 +211,6 @@ jobs: path: web/.output/public - name: Deploy Web to Cloudflare - if: matrix.provider == 'Cloudflare' uses: cloudflare/wrangler-action@v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} @@ -224,8 +218,30 @@ jobs: command: pages deploy web/.output/public --project-name=httpsms gitHubToken: ${{ secrets.GITHUB_TOKEN }} + deploy-web-firebase: + name: Deploy Web to Firebase + needs: [deploy-api, build-web] + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + runs-on: ubuntu-26.04 + permissions: + contents: read + pull-requests: write + steps: + - name: Checkout Code + uses: actions/checkout@v7 + + - name: Set Up Node.js + uses: actions/setup-node@v7 + with: + node-version: "24.18" + + - name: Download Web Build + uses: actions/download-artifact@v8 + with: + name: web-build + path: web/.output/public + - name: Deploy Web to Firebase - if: matrix.provider == 'Firebase' uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a with: repoToken: "${{ secrets.GITHUB_TOKEN }}"