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