Skip to content

Commit

Permalink
Add check to deploy only main to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Jul 12, 2024
1 parent ea9d2d3 commit 16adcec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 16adcec

Please sign in to comment.