Skip to content

Commit 7729b39

Browse files
Modify workflow
1 parent d79e25e commit 7729b39

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build_docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ jobs:
2424
- name: Create .nojekyll
2525
run: |
2626
touch ../_build/.nojekyll
27-
- name: Commit and push changes
27+
- name: Copy build files to gh-pages branch
2828
run: |
2929
git fetch origin
3030
git checkout -b gh-pages origin/gh-pages
31-
cp -r ../_build ./
31+
git rm -rf *
32+
cp -r ../_build/* ./
33+
- name: Commit and push changes
34+
run: |
3235
git config --global user.name "CAMS SDD"
3336
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
3437
git add ./.

0 commit comments

Comments
 (0)