Skip to content

Commit 02f7478

Browse files
committed
test
1 parent ccb33a7 commit 02f7478

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish documentation to GitHub Pages
2+
on:
3+
workflow_call:
4+
push:
5+
# branches:
6+
# - main
7+
paths:
8+
- "docs/**"
9+
- mkdocs.yml
10+
permissions:
11+
contents: write
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.12
21+
- name: Configure Git Credentials
22+
run: |
23+
git config user.name github-actions[bot]
24+
git config user.email github-actions[bot]@github.com
25+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
26+
- uses: actions/cache@v4
27+
with:
28+
key: mkdocs-material-${{ env.cache_id }}
29+
path: .cache
30+
restore-keys: |
31+
mkdocs-material-
32+
- run: pip install mkdocs-material
33+
- run: mkdocs gh-deploy --force

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ theme:
2323
- toc.follow
2424

2525

26+
2627
nav:
2728
- Overview: README.md
2829
- Reference:

0 commit comments

Comments
 (0)