Skip to content

Commit 6fb63cc

Browse files
committed
fix: 🐛 reorganize git identity configuration and streamline gh-pages initialization
1 parent b713486 commit 6fb63cc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
# Required to push to gh-pages
1919
fetch-depth: 0
20+
- name: Configure git identity
21+
run: |
22+
git config user.name "github-actions[bot]"
23+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
2024
- uses: pnpm/action-setup@v3
2125
with:
2226
version: 10
@@ -37,15 +41,11 @@ jobs:
3741
git switch --orphan gh-pages
3842
git rm -rf . || true
3943
echo '<!doctype html><meta charset="utf-8"><meta http-equiv="refresh" content="0; url=/docusaurus-plugins/">' > index.html
40-
git add -A
44+
git add index.html
4145
git commit -m "chore: initialize gh-pages"
4246
git push origin gh-pages
4347
git switch -
4448
fi
45-
- name: Configure git identity
46-
run: |
47-
git config user.name "github-actions[bot]"
48-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4949
- name: Deploy with Docusaurus
5050
env:
5151
GIT_USER: github-actions[bot]

0 commit comments

Comments
 (0)