Merge pull request #711 from int-brain-lab/iblrigv8dev #162
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- iblrigv8 | |
paths: | |
- '.github/workflows/documentation.yaml' | |
- 'docs/**' | |
- 'iblrig/__init__.py' | |
- 'CHANGELOG.md' | |
- 'README.md' | |
- 'pyproject.toml' | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
cache: true | |
python-version-file: pyproject.toml | |
- name: Install requirements | |
run: pdm sync -dG doc | |
- name: Sphinx build | |
run: pdm run sphinx-build docs/source docs/build/html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/build/html | |
force_orphan: true |