Skip to content

Commit 86d2ffa

Browse files
committed
Change GitHub Pages to only deployment from the main branch.
1 parent 5e0da78 commit 86d2ffa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/github-pages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
environment:
6161
name: github-pages
6262
url: ${{ steps.deployment.outputs.page_url }}
63+
# Only deploy from the main branch
64+
if: github.ref == 'refs/heads/main'
6365
needs: build
6466
permissions:
6567
contents: read

0 commit comments

Comments
 (0)