File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2323 - toc.follow
2424
2525
26+
2627nav :
2728 - Overview : README.md
2829 - Reference :
You can’t perform that action at this time.
0 commit comments