Skip to content

Commit 35bd9fb

Browse files
committed
ci: use uv in the gh-pages workflow
1 parent e499070 commit 35bd9fb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ jobs:
1212

1313
steps:
1414
- uses: "actions/checkout@v4"
15-
- uses: "actions/setup-python@v5"
15+
- uses: astral-sh/setup-uv@v5
1616
with:
17-
python-version: "3.x"
17+
version: "0.6.3"
18+
python-version: "3.13"
19+
enable-cache: true
20+
cache-dependency-glob: "uv.lock"
1821
- uses: "actions/setup-node@v4"
1922
with:
2023
node-version: "latest"
21-
- run: "pip install catppuccin[pygments,gh-pages]"
2224
- run: "mkdir -p gh-pages/docs/assets/ && cp assets/pepperjack.webp gh-pages/docs/assets/"
25+
- run: "uv sync --extra pygments --extra gh-pages"
2326
- run: "uv run pdoc catppuccin --no-include-undocumented --favicon https://catppuccin.com/favicon.png --logo https://python.catppuccin.com/docs/assets/pepperjack.webp --logo-link / --template-directory pdoc --output-directory gh-pages/docs"
24-
- run: "scripts/build-gh-pages"
27+
- run: "uv run scripts/build-gh-pages"
2528
- run: "npx lightningcss-cli --minify gh-pages/pygments/*.css --output-dir gh-pages/pygments/"
2629
- uses: "peaceiris/actions-gh-pages@v4"
2730
with:

0 commit comments

Comments
 (0)