Skip to content

Commit 653f8aa

Browse files
committed
CI: add workflow to auto build docs on main
1 parent b874328 commit 653f8aa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/docs.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: docs
2+
on:
3+
push:
4+
branches: [main]
5+
permissions:
6+
contents: write
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Configure Git Credentials
16+
run: |
17+
git config user.name github-actions[bot]
18+
git config user.email github-actions[bot]@users.noreply.github.com
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
25+
26+
- uses: actions/cache@v4
27+
with:
28+
key: mkdocs-material-${{ env.cache_id }}
29+
path: ~/.cache
30+
restore-keys: |
31+
mkdocs-material-
32+
33+
- name: Install UV
34+
run: curl -LsSf https://astral.sh/uv/0.4.18/install.sh | sh
35+
36+
- uses: extractions/setup-just@v3
37+
with:
38+
just-version: "1.14" # optional semver specification, otherwise latest
39+
40+
- run: just docs-publish

0 commit comments

Comments
 (0)