From 9cbed31f1031a32fa5cd87b28576a9bb0a8be2d9 Mon Sep 17 00:00:00 2001 From: Sahir Bhatnagar Date: Thu, 23 Aug 2018 23:35:02 -0400 Subject: [PATCH] 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. --- bin/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy b/bin/deploy index 368633a9503b0..db83010ed476c 100755 --- a/bin/deploy +++ b/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/