@@ -13,22 +13,17 @@ jobs:
1313 - uses : actions/checkout@v4
1414 - name : Configure Git Credentials
1515 run : |
16- git config user.name github-actions[bot]
17- git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18- - uses : actions/setup-python@v5
16+ git config --global user.name 'GitHub Actions'
17+ git config --global user.email 'actions@github.com'
18+ - name : Set up Python 3.11
19+ uses : actions/setup-python@v5
1920 with :
20- python-version : 3.x
21- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22- - uses : actions/cache@v4
23- with :
24- key : mkdocs-material-${{ env.cache_id }}
25- path : .cache
26- restore-keys : |
27- mkdocs-material-
28- - run : pip install mkdocs-material
29- - run : pip install mkdocs-autorefs
30- - run : pip install mkdocs-get-deps
31- - run : pip install mkdocs-material-extensions
32- - run : pip install mkdocstrings
33- - run : pip install mkdocstrings-python
34- - run : mkdocs gh-deploy --force --verbose
21+ python-version : " 3.11"
22+ - name : Install Dependencies
23+ run : pip install mkdocs-material mkdocs-autorefs mkdocs-get-deps mkdocs-material-extensions mkdocstrings mkdocstrings-python
24+ - name : Deploy docs
25+ uses : mhausenblas/mkdocs-deploy-gh-pages@master
26+ # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ CONFIG_FILE : mkdocs.yaml
0 commit comments