-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (38 loc) · 1.08 KB
/
build_user_guide.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
name: Build Frontend
on:
workflow_call:
jobs:
build-user-guide:
name: Build User Guide
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python 3.12
run: uv python install 3.12
- name: Restore uv cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: uv-${{ runner.os }}-${{ hashFiles('back/uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('back/uv.lock') }}
uv-${{ runner.os }}
- name: Install the project dependencies
run: |
cd back
uv sync --all-extras --dev
- name: Build Guide
run: |
cd back
uv run mkdocs build -d mkdocs-guide.yml -d site
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: user_guide
path: back/site
- name: Minimize uv cache
run: uv cache prune --ci