From 26f591db0059b90d7450a024bcde688e9e09cace Mon Sep 17 00:00:00 2001 From: orzorzorzorz Date: Thu, 13 Jun 2019 13:53:00 +0800 Subject: [PATCH] ci: deploy after test check passed (#53) * ci: deploy after test check passed * ci: deploy after test check passed * ci: deploy after test check passed * ci: deploy after test check passed --- .circleci/config.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e14ee5f98..6c2af6db3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,8 @@ jobs: - checkout - run: node -v - run: npm -v + - run: git config --global user.email zy410419243@gmail.com + - run: git config --global user.name zy410419243 - run: npm install - run: command: | @@ -40,6 +42,15 @@ jobs: - *attach_workspace - run: npm run codecov - run: bash <(curl -s https://codecov.io/bash) -t cdf5917e-b38d-4156-a9d6-6a405484b930 + deploy: + <<: *container_config + steps: + - checkout + - *attach_workspace + - run: + name: deploy + when: on_success + command: npm run deploy workflows: version: 2 @@ -55,3 +66,9 @@ workflows: - lint: requires: - setup + - deploy: + requires: + - test + filters: + branches: + only: master