Skip to content

Commit dd8afb4

Browse files
Fix Git checkout command to track origin/gh-pages branch during deployment
1 parent 5adf28a commit dd8afb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy_mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Deploy documentation
4848
run: |
49-
git checkout gh-pages
49+
git checkout --track origin/gh-pages
5050
# Remove all content except .git, site and vx.x.x directory
5151
find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'v*.*.*' ! -name 'site' -exec rm -rf {} +
5252
# Copy MkDocs output

0 commit comments

Comments
 (0)