Skip to content

2.8.4

2.8.4 #749

Workflow file for this run

name: Documentation
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
runs-on: ubuntu-latest
concurrency: documentation
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
token: ${{ secrets.SPHINX_DOCUMENTATION}}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "**/pyproject.toml"
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install ".[docs,tutorials]"
pip install -r ./docs/tutorials/requirements.txt
- name: Build and Commit
uses: sphinx-notes/[email protected]
with:
documentation_path: docs
sphinx_version: "5.3.0"
- name: Push changes
if: ${{ github.event_name == 'push' }}
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.SPHINX_DOCUMENTATION }}
branch: gh-pages