File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Docs
2+
23on :
34 push :
45 branches :
5- - master
6+ - master
67 - main
8+
79permissions :
810 contents : write
11+
912jobs :
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
You can’t perform that action at this time.
0 commit comments