Skip to content

Commit 89a02a5

Browse files
committed
ci: restore state before switching branches
1 parent 5a31899 commit 89a02a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- gh-pages
7+
- main
78
tags:
89
- "v*"
910
workflow_dispatch:
@@ -26,7 +27,7 @@ jobs:
2627
GIT_COMMITTER_NAME: ci-bot
2728
GIT_COMMITTER_EMAIL: [email protected]
2829
- name: Checkout gh-pages
29-
run: git checkout gh-pages
30+
run: git restore . && git checkout gh-pages
3031
- uses: actions/upload-pages-artifact@v3
3132
id: deployment
3233
with:

0 commit comments

Comments
 (0)