diff --git a/.travis.yml b/.travis.yml index e98be61..7c2daf5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,9 @@ before_install: fi - openssl aes-256-cbc -K $encrypted_18b2305b78c9_key -iv $encrypted_18b2305b78c9_iv -in config/id_rsa.enc -out ~/.ssh/id_rsa -d - chmod 600 ~/.ssh/id_rsa -- echo -e "Host 47.92.30.98\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config +- echo -e "Host $HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config +before_deploy: +- yarn global add now after_success: -- scp -o stricthostkeychecking=no -r ./dist root@47.92.30.98:$BUILD_DIR +- 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 diff --git a/docs/now.dev.json b/docs/now.dev.json new file mode 100644 index 0000000..e905406 --- /dev/null +++ b/docs/now.dev.json @@ -0,0 +1,6 @@ +{ + "name": "antd-admin-devdoc", + "alias": ["devdoc-antd-admin.now.sh", "devdoc.antd-admin.zuiidea.com"], + "type": "static", + "public": true +} diff --git a/docs/now.json b/docs/now.json new file mode 100644 index 0000000..270a2be --- /dev/null +++ b/docs/now.json @@ -0,0 +1,6 @@ +{ + "name": "antd-admin-doc", + "alias": ["doc-antd-admin.now.sh", "doc.antd-admin.zuiidea.com"], + "type": "static", + "public": true +}