diff --git a/.circleci/config.yml b/.circleci/config.yml index 2488bbb3..b799a28d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,11 +53,25 @@ jobs: deploy_integration: docker: - image: circleci/node:12 + environment: + SITE_URL: https://beta.spokestack.io/ working_directory: ~/spokestack-website steps: - checkout - *restore_npm_cache + - run: npm install --no-save + - *save_npm_cache + + - run: + name: Run tests + command: npm test + + # build the site with beta.spokestack.io - *restore_gatsby_cache + - run: + name: Run build + command: npm run build + - *save_gatsby_cache # upload to S3 - run: @@ -65,7 +79,7 @@ jobs: command: sudo apt-get -y -qq install awscli - run: name: Build and push static site - command: SITE_URL="https://beta.spokestack.io/" npm run deploy + command: npm run deploy - run: name: Enable cloudfront cli command: aws configure set preview.cloudfront true @@ -103,6 +117,8 @@ workflows: jobs: - build: filters: + branches: + ignore: develop tags: only: - /\d+\.\d+\.\d+/ @@ -110,8 +126,6 @@ workflows: filters: branches: only: develop - requires: - - build - deploy_production: filters: branches: