-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 936 Bytes
/
docs.yml
File metadata and controls
43 lines (34 loc) · 936 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
41
42
43
name: docs
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: quarto-dev/quarto-actions/setup@v2
- name: Install Python dependencies
run: |
pip install "jax[cpu]>=0.4.20" imageio numpy
pip install -e . --no-deps
pip install optax optimistix
pip install "quartodoc>=0.7" "griffe<1.0"
- name: Build API reference
run: quartodoc build
- name: Render site
run: quarto render
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}