File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 3232
3333 - name : Build the documentation
3434 run : |
35+
36+ git checkout --orphan gh-pages
3537 # Generate reStructuredText files from the source code
3638 sphinx-apidoc -o sphinx/ contourusv/ -f
3739
5456 git config --global user.email "[email protected] " 5557 git config --global user.name "Dallas Wade"
5658 git config --global pull.rebase false # Or true, or --ff-only based on your preference
57-
58- git add docs/
59- git commit -m "Updated docs"
60-
61- # Ensure gh-pages branch exists and switch to it
62- git checkout --orphan gh-pages
6359
6460 # Ensure docs/ is staged properly
6561 git add docs/
6864
6965 # Push the changes
7066 git push origin gh-pages --force
71-
72- # Switch back to main and remove docs from the main branch
73- git checkout main
74- rm -rf docs/
75- git add -A
76- git commit -m "Remove docs folder from main branch" || echo "No changes to commit."
77- git push origin main
7867
You can’t perform that action at this time.
0 commit comments