Skip to content

Commit 11dc9a2

Browse files
authored
Update documentation.yml
Use `git read-tree` to reset the tree to the current website content.
1 parent 13bb479 commit 11dc9a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959
git worktree add --no-checkout --detach site
6060
git -C site remote rm origin
6161
git -C site remote add origin "https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}"
62-
git -C site checkout --orphan website
62+
git -C site checkout --orphan gh-pages
63+
git -C site reset --hard
64+
git -C site read-tree --reset -u website
6365
6466
- name: Generate Documentation
6567
run: |

0 commit comments

Comments
 (0)