Bump setuptools from 68.2.2 to 70.0.0 #50
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: Deploy docs | |
on: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- '.github/workflows/deploy-docs.yml' | |
- 'pyproject.toml' | |
- 'poetry.lock' | |
- 'docs/*' | |
- 'mkdocs.yml' | |
pull_request: | |
branches: | |
- master | |
- main | |
paths: | |
- '.github/workflows/deploy-docs.yml' | |
- 'pyproject.toml' | |
- 'poetry.lock' | |
- 'docs/*' | |
- 'mkdocs.yml' | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Max fetch depth (full history of files) | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
cache: "poetry" | |
cache-dependency-path: poetry.lock | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Buld docs | |
run: poetry run mkdocs build | |
- name: Deploy docs | |
if: github.event_name != 'pull_request' | |
run: poetry run mkdocs gh-deploy --force |