Skip to content

Commit d54e211

Browse files
committed
Uvfiy docs workflow
1 parent b4e22be commit d54e211

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

.github/workflows/docs.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
name: Docs
2+
23
on:
34
push:
45
branches:
5-
- master
6+
- master
67
- main
8+
79
permissions:
810
contents: write
11+
912
jobs:
1013
deploy:
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v4
16+
- uses: actions/checkout@v4
17+
18+
- uses: astral-sh/setup-uv@v4
1519
with:
16-
python-version: 3.x
17-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18-
- uses: actions/cache@v3
20+
python-version: "3.11"
21+
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23+
24+
- uses: actions/cache@v4
1925
with:
20-
key: mkdocs-material-${{ env.cache_id }}
21-
path: .cache
26+
key: uv-mkdocs-material-${{ env.cache_id }}
27+
path: ~/.cache/uv
2228
restore-keys: |
23-
mkdocs-material-
24-
- run: pip install .[docs]
25-
- run: mkdocs gh-deploy --force
29+
uv-mkdocs-material-
30+
31+
- run: uv pip install ".[docs]"
32+
33+
- run: uv run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)