-
-
Notifications
You must be signed in to change notification settings - Fork 266
35 lines (32 loc) · 1.03 KB
/
Copy pathbuild-docs.yml
File metadata and controls
35 lines (32 loc) · 1.03 KB
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
name: Build Site
# Reusable build of the full site: the React landing (website/) overlaid onto the
# MkDocs docs + blog build, via scripts/docs/build_site.sh. Produces the `site` artifact
# consumed by docs.yaml (deploy) and build.yml (PR build check).
on:
workflow_call:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: 3.11
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dstack
run: |
uv sync --extra server
- name: Build
run: |
sudo apt-get update && sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
./scripts/docs/build_site.sh
- uses: actions/upload-artifact@v4
with:
name: site
path: site
retention-days: 1
include-hidden-files: true