Skip to content

Commit 31af548

Browse files
Sam Daniel ThangarajanSamDanielThangarajan
authored andcommitted
publish to github-pages only when pushed to main
1 parent 349b2bf commit 31af548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/wf-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
deploy-docs:
4949
name: Deploy documentation 📚 to GitHub Pages
50-
if: startsWith(github.ref, 'refs/tags/') # only publish documentation on tag pushes
50+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
5151
needs:
5252
- build
5353
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)