old-techblog/bin/deploy.sh

8 lines
275 B
Bash
Executable File

SITE=netflux.io
DISTRIBUTION=EH0M9KWOAPOFH
JEKYLL_ENV=production jekyll build -d _production
aws s3 cp _production s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
rm -rf _production