Skip to content

Bug fix (#724)

Bug fix (#724) #185

name: Publish the documentation
on:
push:
branches: [main]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build the documentation with Sphinx
run: |
pip install -r requirements-doc.txt
sphinx-build -b html docs docs/build/html
- name: Publish the documentation
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true