Skip to content

Commit ce5e683

Browse files
ci: build fix # 2
1 parent e9b42d0 commit ce5e683

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ jobs:
2929
- name: Build MkDocs site
3030
run: mkdocs build
3131

32+
3233
- name: Deploy to gh-pages (no force)
3334
run: |
3435
git fetch origin gh-pages
35-
git worktree add gh-pages-temp origin/gh-pages
36+
git branch gh-pages origin/gh-pages
37+
git worktree add gh-pages-temp gh-pages
3638
3739
rsync -av --delete site/ gh-pages-temp/
3840
touch gh-pages-temp/.nojekyll
3941
4042
cd gh-pages-temp
4143
git add .
4244
git commit -m "Update docs [skip ci]" || echo "No changes"
43-
git push origin HEAD:gh-pages
45+
git push origin gh-pages
4446
cd ..
4547
git worktree remove gh-pages-temp

0 commit comments

Comments
 (0)