Skip to content

Commit ba6e33c

Browse files
authored
Update publish-docs.yml
1 parent c3c02f8 commit ba6e33c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,39 @@ name: Publish Docs
22
on:
33
push:
44
branches:
5-
- main # Change this to master if your default branch is master
5+
- main
66
permissions:
77
contents: write
88
jobs:
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-

0 commit comments

Comments
 (0)