Skip to content
Permalink
Browse files

Do not delete CNAME when moving _site files to deploy branch (#25)

The step in the deploy script that deletes almost all files except for _site/ was causing issues if you have a custom domain name. GitHub pages requires a CNAME, so I added this to the list of files not to delete.
  • Loading branch information
sahirbhatnagar authored and alshedivat committed Aug 24, 2018
1 parent 8fc0c4b commit 9cbed31f1031a32fa5cd87b28576a9bb0a8be2d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/deploy
@@ -81,7 +81,7 @@ git checkout -b $DEPLOY_BRANCH
bundle exec jekyll build

# Delete and move files
find . -maxdepth 1 ! -name '_site' ! -name '.git' ! -name '.gitignore' -exec rm -rf {} \;
find . -maxdepth 1 ! -name '_site' ! -name '.git' ! -name 'CNAME' ! -name '.gitignore' -exec rm -rf {} \;
mv _site/* .
rm -R _site/

0 comments on commit 9cbed31

Please sign in to comment.
You can’t perform that action at this time.