Try to fix docs-publish

pull/3980/head
shamoon 2 months ago
parent a46a234b76
commit bcc867323f

@ -61,8 +61,10 @@ jobs:
- pre-commit - pre-commit
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: - name: Configure Git Credentials
ref: main run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
@ -76,16 +78,6 @@ jobs:
- run: sudo apt-get install pngquant - run: sudo apt-get install pngquant
- run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git - run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git
- run: pip install mkdocs-redirects "mkdocs-material[imaging]" - run: pip install mkdocs-redirects "mkdocs-material[imaging]"
- name: Set Git config
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
- name: Sync gh-pages
run: |
git fetch origin gh-pages
git checkout gh-pages
git pull origin gh-pages
git checkout main
- name: Docs Deploy - name: Docs Deploy
run: MKINSIDERS=true mkdocs gh-deploy --force run: MKINSIDERS=true mkdocs gh-deploy --force
env: env:

Loading…
Cancel
Save