Skip to content

Migrate documentation to Quarto #2

Migrate documentation to Quarto

Migrate documentation to Quarto #2

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install quartodoc and griffe
run: |
python -m pip install --upgrade pip
python -m pip install quartodoc==0.4.2
python -m pip install griffe==0.32.3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.2.280 # since this is my local version, we could change it
- name: Build docs
run: |
python -m quartodoc build --config docs/_quarto.yml
quarto render docs
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/_site