Skip to content

Update workflow to trigger on push to main branch #2

Update workflow to trigger on push to main branch

Update workflow to trigger on push to main branch #2

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