Skip to content

Commit bae59cf

Browse files
committed
Fix 1 to push to a new branch
1 parent 4e2d224 commit bae59cf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/sphinx-docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,20 @@ jobs:
3232
run: |
3333
git config user.name "github-actions[bot]"
3434
git config user.email "github-actions[bot]@users.noreply.github.com"
35+
36+
# Create a new directory for the public_html
37+
mv docs/build/html public_html
38+
39+
# Create a new branch for deployment
3540
git fetch origin
3641
git switch --orphan gen_page
3742
git rm -rf .
38-
cp -r docs/build/html/* .
43+
44+
# Copy the built documentation to the root directory
45+
mv public_html/* .
46+
rm -rf public_html
3947
touch .nojekyll
48+
4049
git add .
4150
git commit -m "Deploy documentation to gen_page"
4251
git push -f origin gen_page

0 commit comments

Comments
 (0)