Skip to content

Commit

Permalink
fix: don't deploy on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Aug 20, 2023
1 parent f5e8dff commit c2c21ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:

# Single deploy job since we're just deploying
deploy:
# only build on `master` branch of the actual remote, NOT on PRs.
# this stops PRs from attempting to deploy GH pages and failing to do so.
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit c2c21ce

Please sign in to comment.