File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 5555 run : |
5656 source venv/bin/activate
5757 sh build_html.sh
58+
5859 - name : Deploy to pages branch
5960 run : |
6061 # Create and switch to a new worktree for the openmlsys-book-en branch
@@ -65,11 +66,12 @@ jobs:
6566 git fetch origin openmlsys-book-en || true
6667 git branch -D openmlsys-book-en || true
6768 git checkout --orphan openmlsys-book-en
68- git rm -rf . || true
69+
70+ # Clean everything except .git directory
71+ find . -mindepth 1 -maxdepth 1 -not -name .git -exec rm -rf {} \;
6972
7073 # Copy built documentation
71- apt-get update && apt-get install -y rsync
72- rsync -av --delete ../_build/ .
74+ cp -r ../_build/* .
7375
7476 # Configure git
7577 git config user.name "${GIT_USER_NAME}"
9092 # Clean up the worktree
9193 cd ..
9294 git worktree remove openmlsys-book-en
95+
You can’t perform that action at this time.
0 commit comments