Skip to content

Seems to be working again... #50

Seems to be working again...

Seems to be working again... #50

name: Docs
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# we want to find git tags to pass version to sphinx
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme sphinx-automodapi .[dev]
- name: Sphinx build
run: |
cd doc ; make clean ; make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/_build/html
force_orphan: true