From 1199e7e618e59259715884eeb1c5fd5226cdcd02 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Fri, 2 Nov 2018 19:27:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20travis.yml.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9cda51e..b1f309c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ node_js: - node script: - npm run build -before_deploy: +before_install: - | if [ "$TRAVIS_BRANCH" = "develop" ]; then for prefixed_envvar in ${!DEV_*}; do @@ -18,6 +18,6 @@ before_deploy: - chmod 600 ~/.ssh/id_rsa - echo -e "Host $HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - yarn global add now -deploy: +after_script: - scp -o stricthostkeychecking=no -r ./dist root@$HOST:$BUILD_DIR - cd ./docs && now -A $DOC_NOW_CONFIG -t $NOW_TOKEN && now alias -A $DOC_NOW_CONFIG -t $NOW_TOKEN