File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,32 +2,39 @@ name: Publish Docs
22on :
33 push :
44 branches :
5- - main # Change this to master if your default branch is master
5+ - main
66permissions :
77 contents : write
88jobs :
99 deploy :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+
1316 - name : Configure Git Credentials
1417 run : |
1518 git config user.name github-actions[bot]
1619 git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20+
1721 - uses : actions/setup-python@v5
1822 with :
1923 python-version : 3.x
24+
2025 - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
26+
2127 - uses : actions/cache@v4
2228 with :
2329 key : mkdocs-material-${{ env.cache_id }}
2430 path : .cache
2531 restore-keys : |
2632 mkdocs-material-
33+
2734 - name : Install Dependencies
2835 run : |
2936 pip install mkdocs-material
30- pip install pymdown-extensions # Add any other plugins you used for math rendering here
37+ pip install pymdown-extensions
38+
3139 - name : Deploy Docs
3240 run : mkdocs gh-deploy --force
33-
You can’t perform that action at this time.
0 commit comments