Skip to content

Commit 57ad8c4

Browse files
authored
Update docs.yml
Add checkout gh-pages
1 parent 1696527 commit 57ad8c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
run: |
5353
bash docs/scripts/build_mkdocs.sh
5454
55+
- name: Checkout gh-pages
56+
run: |
57+
git fetch origin gh-pages
58+
git checkout gh-pages || git checkout --orphan gh-pages
59+
git pull origin gh-pages || echo "No remote changes to pull"
60+
5561
- name: Build and Deploy Latest Docs
5662
run: |
5763
mike deploy --push --branch gh-pages latest

0 commit comments

Comments
 (0)