Skip to content

Update to only run if changes are in the docs folder #10

Update to only run if changes are in the docs folder

Update to only run if changes are in the docs folder #10

Workflow file for this run

name: Build and publish docs
on:
push:
branches:
- main
- add-docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
docs:
- 'docs/**'
- uses: actions/setup-python@v2
if: steps.changes.outputs.src == 'true'
with:
python-version: 3.x
- name: Install Poetry
if: steps.changes.outputs.src == 'true'
run: |
pip install -U pip
pip install poetry
poetry config virtualenvs.create false
poetry install --with docs
- name: Deploy to GitHub Pages
if: steps.changes.outputs.src == 'true'
run: poetry run mkdocs gh-deploy --force