File tree Expand file tree Collapse file tree 1 file changed +18
-22
lines changed
Expand file tree Collapse file tree 1 file changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,28 @@ name: Deploy Docs
22
33on :
44 push :
5- branches : [main]
6-
5+ branches :
6+ - main
77permissions :
8- contents : read
9- pages : write
10- id-token : write
11-
12- concurrency :
13- group : " pages"
14- cancel-in-progress : false
15-
8+ contents : write
169jobs :
1710 deploy :
1811 runs-on : ubuntu-latest
1912 steps :
2013 - uses : actions/checkout@v4
21- - name : Set up Python
22- uses : actions/setup-python@v4
23- with :
24- python-version : ' 3.11'
25- - name : Install dependencies
14+ - name : Configure Git Credentials
2615 run : |
27- python -m pip install --upgrade pip
28- pip install .[docs]
29- - name : Deploy to GitHub Pages
30- env :
31- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32- run : |
33- mkdocs gh-deploy --force
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
19+ 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 .[docs]
29+ - run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments