Skip to content

Upgrade black

Upgrade black #26

Workflow file for this run

name: sphinx
on:
push:
tags: "*"
pull_request:
branches:
- main
env:
POETRY_VERSION: "1.8.2"
PYTHON_VERSION: "3.9"
jobs:
build-docs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}
- name: install
run: poetry install --with dev
- name: Build documentation
run: |
mkdir gh-pages
touch gh-pages/.nojekyll
cd doc/
poetry run sphinx-build -b html . _build
cp -r _build/* ../gh-pages/
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: gh-pages