#!/bin/bash
DISTRIBUTION_ID=$distribution_id
BUCKET_NAME=$s3_bucket
aws s3 rm s3://$BUCKET_NAME --recursive
aws s3 sync dist s3://$BUCKET_NAME
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths "/*"
