Skip to content

Commit

Permalink
Do not delete CNAME when moving _site files to deploy branch (barrycl…
Browse files Browse the repository at this point in the history
…ark#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 9cbed31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit 9cbed31

Please sign in to comment.