File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments