Skip to content

Instantly share code, notes, and snippets.

@urukalo
Created June 21, 2018 13:21
Show Gist options
  • Save urukalo/d767a4c21642cc26217d8c51c6c139ad to your computer and use it in GitHub Desktop.
Save urukalo/d767a4c21642cc26217d8c51c6c139ad to your computer and use it in GitHub Desktop.
npm install
npm run build
aws s3 sync $S3_DIRECTORY s3://$S3_BUCKET_NAME/ --acl=public-read --delete --exclude '.git/*'
aws cloudfront create-invalidation --distribution-id <DISTRIBUTION-ID> --paths /index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment