- Notifications
You must be signed in to change notification settings - Fork0
Update workflow to trigger on push to main branch#2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:Build and Deploy documentation | |
| on: | |
| push: | |
| branches: | |
| -main | |
| permissions: | |
| contents:write | |
| jobs: | |
| build-and-deploy: | |
| runs-on:ubuntu-latest | |
| steps: | |
| -uses:actions/checkout@v4 | |
| -uses:actions/setup-python@v5 | |
| -name:Install dependencies | |
| run:pip install sphinx sphinx_rtd_theme myst_parser | |
| -name:Build Docs | |
| run:sphinx-build -b html . _build/html | |
| -name:Deploy to GitHub Pages | |
| uses:peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token:${{ secrets.GITHUB_TOKEN }} | |
| publish_dir:_build/html |