Skip to content

Commit d6e3554

Browse files
committed
better deploy script
1 parent 9c89f90 commit d6e3554

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
- run:
1919
name: Deploy
2020
command: >
21-
if [ $CIRCLE_BRANCH = 'master' ]
21+
if [ "$CIRCLE_BRANCH" = 'master' ]
2222
then
23-
export AWS_DEFAULT_REGION=eu-west-1
23+
export AWS_DEFAULT_REGION="eu-west-1"
2424
aws s3 sync dist s3://fullstackbulletin.com;
2525
aws configure set preview.cloudfront true;
26-
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --invalidation-batch "{ \"Paths\": { \"Quantity\": 1, \"Items\": [ \"/*\" ] }, \"CallerReference\": \"CIRCLE-CI-BUILD-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1\" }";
27-
fi
26+
aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION_ID" --invalidation-batch "{ \"Paths\": { \"Quantity\": 1, \"Items\": [ \"/*\" ] }, \"CallerReference\": \"CIRCLE-CI-BUILD-$CIRCLE_BUILD_NUM-$CIRCLE_SHA1\" }";
27+
fi;
2828
2929
workflows:
3030
build:

0 commit comments

Comments
 (0)