Skip to content

Commit

Permalink
Update workflow to only publish the default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen committed Jan 9, 2025
1 parent 2e36509 commit a524139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
if: github.ref_name == github.event.repository.default_branch
uses: actions/configure-pages@v2
- name: Set up node version
uses: actions/setup-node@v2
Expand All @@ -39,6 +40,7 @@ jobs:
with:
path: 'build'
deploy:
if: github.ref_name == github.event.repository.default_branch
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit a524139

Please sign in to comment.