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
