Skip to content

Commit 06f84b8

Browse files
committed
WIP: Test building docs
skipci
1 parent 8f8120a commit 06f84b8

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test build docs
2+
3+
on:
4+
push
5+
6+
jobs:
7+
docs:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
23+
- name: Create cache key
24+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
25+
26+
- name: Check cache
27+
uses: actions/cache@v4
28+
with:
29+
key: mkdocs-material-${{ env.cache_id }}
30+
path: ~/.cache
31+
restore-keys: |
32+
mkdocs-material-
33+
34+
- name: Install material for mkdocs
35+
run: pip install mkdocs-material
36+
37+
- name: Build and deploy docs
38+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)