The family cookbook, in blog form
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
620 B

# Kill the process on a failed command
set -e
if [ "`git status -s`" ]
echo "The working directory is dirty. Please commit any pending changes."
exit 1;
echo Deleting old published version...
rm -rf public
echo Running Hugo...
echo Building search index...
node bin/make-index.js > public/search-index.json
gzip -f -n public/search-index.json
echo Building post list...
node bin/make-posts.js > public/posts.json
gzip -f -n public/posts.json
echo Uploading...
rsync -acvz --exclude=/.well-known --exclude=/.htaccess --delete public/
echo ''
echo Done!