Skip to content

Migrate from setup.py/setup.cfg to pyproject.toml and drop Python 3.7 support #230

Migrate from setup.py/setup.cfg to pyproject.toml and drop Python 3.7 support

Migrate from setup.py/setup.cfg to pyproject.toml and drop Python 3.7 support #230

Workflow file for this run

name: Docs
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy-docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: Checkout
uses: actions/checkout@v4
with:
# fecth all history so that setuptools-scm works
fetch-depth: 0
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install build sphinx sphinx-intl sphinx_rtd_theme
python -m build --sdist
python -m install dist/*
- name: Build documentation
run: make doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.9.3
# Only deploy on master branch
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs/_build/html