Skip to content

Commit

Permalink
Do not publish from pull requests
Browse files Browse the repository at this point in the history
Due to the requirement on secrets, we do not want to publish the site
from pull requests. This fixes a regression introduced in commit
bdf8549.
  • Loading branch information
rcdailey committed Jan 7, 2024
1 parent 16e2852 commit 913257a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:

- name: Publish
uses: cloudflare/pages-action@v1
# if: |
# github.ref == 'refs/heads/master' ||
# github.ref == 'refs/heads/next'
# Publish all direct pushes to the repo, for secrets access. But ignore pull requests.
# Non-master branches get published with a temporary URL (not the main site URL).
if: github.event_name != 'pull_request'
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down

0 comments on commit 913257a

Please sign in to comment.