old-techblog/bin/deploy.sh

8 lines
275 B
Bash
Raw Normal View History

2017-12-29 13:27:50 +00:00
SITE=netflux.io
DISTRIBUTION=EH0M9KWOAPOFH
2018-01-10 05:50:21 +00:00
JEKYLL_ENV=production jekyll build -d _production
aws s3 cp _production s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
2017-12-29 13:27:50 +00:00
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
2018-01-10 05:50:21 +00:00
rm -rf _production