Merge pull request #2212 from AndrewCheng827/Andrew_fix_2194 #724
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: Documentation | |
on: | |
push: | |
branches: | |
- master # Push events on master branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
# TODO: 3.x should be fine, but for now we enforce 3.10 to work around | |
# the "fatal error: longintrepr.h: No such file or directory" error | |
# triggered by revolve/cython in 3.11 | |
python-version: '3.10' | |
- name: Install Sphinx | |
run: | | |
python -m pip install --upgrade pip | |
pip install sphinx sphinx_rtd_theme | |
pip install -e . | |
- name: Generate documentation | |
working-directory: docs | |
run: make html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./docs/_build/html |