Skip to content

Commit 8ab4490

Browse files
committed
build-docs adapt for 2-step installation
Signed-off-by: Pablo Garay <[email protected]>
1 parent bcdc5af commit 8ab4490

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/build-docs.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,40 @@ on:
2121

2222
jobs:
2323
build-docs:
24-
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/[email protected]
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.12'
35+
36+
- name: Install uv
37+
run: |
38+
curl -LsSf https://astral.sh/uv/0.8.22/install.sh | sh
39+
echo "$HOME/.local/bin" >> $GITHUB_PATH
40+
41+
- name: Create virtual environment
42+
run: uv venv
43+
44+
- name: Install build dependencies
45+
run: uv sync --only-group build
46+
47+
- name: Install docs dependencies
48+
run: uv sync --group docs --no-install-project
49+
50+
- name: Build documentation
51+
run: |
52+
source .venv/bin/activate
53+
cd docs
54+
make html
55+
56+
- name: Upload docs artifact
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: documentation
60+
path: docs/build/html/

0 commit comments

Comments
 (0)