Skip to content

Commit a524139

Browse files
committed
Update workflow to only publish the default branch
1 parent 2e36509 commit a524139

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v3
2727
- name: Setup Pages
28+
if: github.ref_name == github.event.repository.default_branch
2829
uses: actions/configure-pages@v2
2930
- name: Set up node version
3031
uses: actions/setup-node@v2
@@ -39,6 +40,7 @@ jobs:
3940
with:
4041
path: 'build'
4142
deploy:
43+
if: github.ref_name == github.event.repository.default_branch
4244
environment:
4345
name: github-pages
4446
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)