Skip to content

Run github-pages build only when changes are made to docs directory #271

Run github-pages build only when changes are made to docs directory

Run github-pages build only when changes are made to docs directory #271

Workflow file for this run

name: github-pages
on:
push:
branches:
- docs
permissions:
actions: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install -r requirements.txt
- run: pdoc -t templates/ ai/ --docformat google --search --math -o ./docs
- uses: actions/upload-pages-artifact@v2
with:
path: docs/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v2