2024-04-27 17:50:15 -04:00
|
|
|
name: docs
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
name: Docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
|
|
|
|
- name: Install requirements
|
|
|
|
run: |
|
2024-04-29 13:49:35 -04:00
|
|
|
pip3 install -U sphinx
|
2024-04-27 17:50:15 -04:00
|
|
|
pip3 install sphinx-rtd-theme
|
|
|
|
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
cd docs
|
|
|
|
make html
|
|
|
|
# https://github.com/peaceiris/actions-gh-pages
|
|
|
|
- name: Deploy
|
|
|
|
if: success()
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
2024-04-29 00:30:47 -04:00
|
|
|
publish_branch: gh-pages
|
2024-04-27 17:50:15 -04:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: docs/_build/html/
|