From 37af8c24c8feb49390df344e1959f046584caeee Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 11 Feb 2018 09:22:37 -0500 Subject: [PATCH] Adding deploy scripting --- .circleci/config.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ebe9638..daef4dc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,11 +23,19 @@ jobs: - node_modules key: v1-dependencies-{{ checksum "package.json" }} - - run: yarn test + - run: + name: Run tests + command: yarn test - - run: yarn build + - run: + name: Build site + command: yarn build - # TODO: Deploy to preview.regexper.com + - run: + name: Deploy to S3 + command: | + pip install awscli --upgrade --user + aws s3 sync build s3://$DEPLOY_BUCKET/ --delete workflows: version: 2