-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix update book workflow to not delete everything
- Loading branch information
1 parent
e3540e7
commit ca32e0e
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/* . | ||
|
@@ -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 |