Skip to content

Commit

Permalink
Only deploy pages on push and not pull request (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk authored Dec 4, 2024
1 parent f3acfbc commit 4c169fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
make html
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.repository == 'microsoft/mattersim' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/main' )
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
publish_dir: ./docs/_build/html

0 comments on commit 4c169fb

Please sign in to comment.