Skip to content

Commit 4c169fb

Browse files
authored
Only deploy pages on push and not pull request (#47)
1 parent f3acfbc commit 4c169fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/gh-pages.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
make html
4343
4444
- name: Deploy to GitHub Pages
45+
if: github.event_name == 'push' && github.repository == 'microsoft/mattersim' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/main' )
4546
uses: peaceiris/actions-gh-pages@v3
4647
with:
4748
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
publish_dir: ./docs/_build/html
49+
publish_dir: ./docs/_build/html

0 commit comments

Comments
 (0)