From 91de1a42d76a56aedcfe5e1e7bafb236184daad6 Mon Sep 17 00:00:00 2001 From: Velocities Date: Sun, 25 May 2025 18:25:44 -0400 Subject: [PATCH] update: frontend.yml to conditionally choose projectName for Cloudflare Pages deployment target --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index ff007d2..8f638a0 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -43,6 +43,6 @@ jobs: with: apiToken: ${{ secrets.CF_PAGES_API_TOKEN }} accountId: ${{ secrets.CF_ACCOUNT_ID }} - projectName: "speedcart" + projectName: "${{ github.ref == 'refs/heads/deployment' && 'speedcart' || 'speedcart-dev' }}" directory: "Frontend/speedcart-react/build" branch: "${{ github.ref == 'refs/heads/deployment' && 'deployment' || 'development' }}" \ No newline at end of file