Skip to content

👷 add preview for docs #2

👷 add preview for docs

👷 add preview for docs #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-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install and Build
if: github.event.action != 'closed'
run: uv run --only-group=docs mkdocs build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./site/