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 }}