Fix #36
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: | |
- main | |
paths: | |
- "docs/**/*" | |
- "depeche_db/**/*.py" | |
- ".github/workflows/docs-gh-pages.yml" | |
- "mkdocs.yml" | |
- ".mkdocs-overrides/**/*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
deploy-docs: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install graphviz | |
run: sudo apt-get install -y graphviz | |
- uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Install | |
run: | | |
pipx install poetry | |
poetry install --with dev,docs | |
- name: Deploy docs | |
run: poetry run mkdocs gh-deploy |