From 16adcec55e9e8a4ddd24e59d3d3aec524f3626cf Mon Sep 17 00:00:00 2001 From: Nikita Kuznetsov Date: Fri, 12 Jul 2024 12:41:44 +0200 Subject: [PATCH] Add check to deploy only main to prod --- .github/workflows/deploy-web.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-web.yaml b/.github/workflows/deploy-web.yaml index 0b04195c9..3f2dde91c 100644 --- a/.github/workflows/deploy-web.yaml +++ b/.github/workflows/deploy-web.yaml @@ -47,6 +47,7 @@ jobs: - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 + if: contains(github.ref, 'main') || inputs.environment == 'dev' with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}