Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ jobs:
# Save the built site
mv site /tmp/site

# Switch to gh-pages branch (create if not exists)
if git fetch origin gh-pages:gh-pages 2>/dev/null; then
git checkout gh-pages
else
git checkout --orphan gh-pages
git rm -rf . || true
fi
# Switch to page branch (where GitHub Pages is configured)
git fetch origin page:page
git checkout page

# Remove old docs/ and copy new content
rm -rf docs/
Expand All @@ -58,4 +54,4 @@ jobs:
# Commit and push
git add docs/
git commit -m "Deploy documentation to /docs/" || echo "No changes to commit"
git push origin gh-pages
git push origin page
Loading