-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.32 KB
/
docs_deploy.yml
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
44
45
46
47
48
49
50
51
52
53
name: docs
on:
push:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/docs_build.yml
- .github/workflows/docs_deploy.yml
- '**.py'
- '**.ipynb'
- '**.html'
- '**.js'
- poetry.lock
- pyproject.toml
- '**.rst'
- '**.md'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: 'true'
- name: Install uv
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355
with:
# Install a specific version of uv.
version: "0.5.21"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
with:
python-version-file: "health_rec/.python-version"
- name: Install the project
run: |
cd health_rec
uv sync --all-extras --all-groups
- name: Build docs
run: |
source health_rec/.venv/bin/activate
cd docs && rm -rf source/reference/api/_autosummary && uv run make html
- name: Deploy to Github pages
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8
with:
branch: github_pages
folder: docs/build/html