-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 820 Bytes
/
Copy pathdeploy-docs.yml
File metadata and controls
40 lines (34 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Documentation
on:
push:
branches:
- main
paths:
- "website/**"
- ".github/workflows/deploy-docs.yml"
- "images/**"
- "explanations/lambert sampling/**"
- "material_gallery/thumbnails/**"
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
- name: Install dependencies
run: uv sync --group docs
- name: Build and deploy site
run: uv run mkdocs gh-deploy --force --clean