Skip to content

Commit

Permalink
ci: deploy after test check passed (#53)
Browse files Browse the repository at this point in the history
* ci: deploy after test check passed

* ci: deploy after test check passed

* ci: deploy after test check passed

* ci: deploy after test check passed
  • Loading branch information
orzyyyy committed Jun 13, 2019
1 parent f47d424 commit 26f591d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -55,3 +66,9 @@ workflows:
- lint:
requires:
- setup
- deploy:
requires:
- test
filters:
branches:
only: master

0 comments on commit 26f591d

Please sign in to comment.