Skip to content

Commit f273c1d

Browse files
committed
Ensure git is proper configured for mike deploy
See: https://github.com/jimporter/mike#deploying-via-ci
1 parent 52a7e41 commit f273c1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ jobs:
6565
uses: battila7/get-version-action@v2
6666

6767
- name: Deploy documentation
68-
run: hatch run docs:deploy ${{ steps.get-version.outputs.version-without-v }}
68+
run: |
69+
git fetch origin gh-pages --depth=1
70+
git config user.name github-actions
71+
git config user.email [email protected]
72+
hatch run docs:deploy ${{ steps.get-version.outputs.version-without-v }}
6973
7074
publish-github:
7175
needs: publish-docs

0 commit comments

Comments
 (0)