@@ -10,24 +10,24 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
needs : [checks]
12
12
steps :
13
- - uses : actions/checkout@v4
13
+ - uses : actions/checkout@v4
14
14
15
- - name : Install uv
16
- uses : astral-sh/setup-uv@v3
17
- with :
18
- enable-cache : true
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
17
+ with :
18
+ enable-cache : true
19
19
20
- - name : Set up Python 3.12
21
- run : uv python install 3.12
20
+ - name : Set up Python 3.12
21
+ run : uv python install 3.12
22
22
23
- - name : Build
24
- run : uv build
23
+ - name : Build
24
+ run : uv build
25
25
26
- - name : Upload artifacts
27
- uses : actions/upload-artifact@v4
28
- with :
29
- name : release-dists
30
- path : dist/
26
+ - name : Upload artifacts
27
+ uses : actions/upload-artifact@v4
28
+ with :
29
+ name : release-dists
30
+ path : dist/
31
31
32
32
checks :
33
33
uses : ./.github/workflows/shared.yml
@@ -39,17 +39,17 @@ jobs:
39
39
needs :
40
40
- release-build
41
41
permissions :
42
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
42
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
43
43
44
44
steps :
45
- - name : Retrieve release distributions
46
- uses : actions/download-artifact@v4
47
- with :
48
- name : release-dists
49
- path : dist/
45
+ - name : Retrieve release distributions
46
+ uses : actions/download-artifact@v4
47
+ with :
48
+ name : release-dists
49
+ path : dist/
50
50
51
- - name : Publish package distributions to PyPI
52
- uses : pypa/gh-action-pypi-publish@release/v1
51
+ - name : Publish package distributions to PyPI
52
+ uses : pypa/gh-action-pypi-publish@release/v1
53
53
54
54
docs-publish :
55
55
runs-on : ubuntu-latest
@@ -62,16 +62,19 @@ jobs:
62
62
run : |
63
63
git config user.name github-actions[bot]
64
64
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
65
- - name : " Set up Python"
66
- uses : actions/setup-python@v5
65
+
66
+ - name : Install uv
67
+ uses : astral-sh/setup-uv@v3
67
68
with :
68
- python-version-file : " .python-version"
69
+ enable-cache : true
70
+
69
71
- run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
70
72
- uses : actions/cache@v4
71
73
with :
72
74
key : mkdocs-material-${{ env.cache_id }}
73
75
path : .cache
74
76
restore-keys : |
75
77
mkdocs-material-
78
+
76
79
- run : uv sync --frozen --group docs
77
80
- run : uv run --no-sync mkdocs gh-deploy --force
0 commit comments