Update sphinx.yml #29
This file contains 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: Docs | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Install dependencies | |
run: | | |
pip install numpydoc m2r2 | |
pip install -e . | |
pip install sphinx sphinx_rtd_theme | |
- name: Build docs with sphinx | |
run: sphinx-build -b html docs docs/_build/html | |
- name: Deploy documentation to gh-pages branch | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs/_build/html | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |