Skip to content

feat: add Sphinx as a documentation tool #1

feat: add Sphinx as a documentation tool

feat: add Sphinx as a documentation tool #1

name: Build and Deploy documentation
on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
build-and-deploy:
if: github.event.pull_request.merged == true
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@v7
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html