Skip to content

Commit a26dd72

Browse files
committed
better deploy script
1 parent d6e3554 commit a26dd72

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ jobs:
1818
- run:
1919
name: Deploy
2020
command: >
21-
if [ "$CIRCLE_BRANCH" = 'master' ]
22-
then
23-
export AWS_DEFAULT_REGION="eu-west-1"
21+
if [ "$CIRCLE_BRANCH" = 'master' ]; then
22+
export AWS_DEFAULT_REGION="eu-west-1"
2423
aws s3 sync dist s3://fullstackbulletin.com;
2524
aws configure set preview.cloudfront true;
2625
aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION_ID" --invalidation-batch "{ \"Paths\": { \"Quantity\": 1, \"Items\": [ \"/*\" ] }, \"CallerReference\": \"CIRCLE-CI-BUILD-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1\" }";

0 commit comments

Comments
 (0)