chore: switch to ruff #112
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: Build docs and push to pages branch | |
on: | |
push: | |
branches: [ main, dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install requirements for docs generation | |
run: | | |
python -m pip install --upgrade pip setuptools setuptools_scm wheel | |
python -m pip install .[docs] | |
- name: Build docs | |
run: pydoctor --config pyproject.toml | |
- name: Push docs to github pages branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |