-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (51 loc) · 1.39 KB
/
ci.yml
File metadata and controls
59 lines (51 loc) · 1.39 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: ci
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
sparse-checkout: |
docs
includes
overrides
ihm
- name: Install pngquant
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: pngquant
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.7"
enable-cache: true
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Restore MKDocs cache
uses: actions/cache@v5
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Build and deploy website
run: uv run mkdocs gh-deploy --force
- name: Minimize uv cache
run: uv cache prune --ci