Skip to content

Commit

Permalink
fix update book workflow to not delete everything
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell authored Aug 21, 2024
1 parent e3540e7 commit ca32e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Clean the site contents except for dev, pull contents of dev/ to main site
run: |
# delete everything except the dev folder
ls -1 --hide=dev | xargs rm -rf
find . ! -name "dev" -maxdepth 1 -delete
# copy the contents of dev into the root
cp -rf dev/* .
Expand All @@ -39,5 +39,5 @@ jobs:
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true # this will clean up all previous PR previews / main branch preview
force_orphan: true
cname: datasciencebook.ca

0 comments on commit ca32e0e

Please sign in to comment.