-
-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (34 loc) · 1.31 KB
/
gh-pages.yaml
File metadata and controls
37 lines (34 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
workflow_dispatch:
push:
branches:
- "main"
name: "gh-pages"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: astral-sh/setup-uv@v5
with:
version: "0.6.3"
python-version: "3.13"
enable-cache: true
cache-dependency-glob: "uv.lock"
- uses: "actions/setup-node@v6"
with:
node-version: "latest"
- run: "mkdir -p gh-pages/docs/assets/ && cp assets/pepperjack.webp gh-pages/docs/assets/"
- run: "uv sync --all-extras"
- 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 /docs --template-directory pdoc --output-directory gh-pages/docs"
- run: "uv run scripts/build-gh-pages"
- run: "npx lightningcss-cli --minify gh-pages/pygments/*.css --output-dir gh-pages/pygments/"
- uses: "peaceiris/actions-gh-pages@v4"
with:
enable_jekyll: false
github_token: "${{ secrets.GITHUB_TOKEN }}"
publish_branch: "gh-pages"
publish_dir: "./gh-pages"
user_email: "github-actions[bot]@users.noreply.github.com"
user_name: "github-actions[bot]"
cname: "python.catppuccin.com"