Added CI for document.

This commit is contained in:
zuiidea
2018-09-11 22:00:18 +08:00
parent ae8ac62938
commit 7077ef15f3
3 changed files with 17 additions and 2 deletions
+5 -2
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
{
"name": "antd-admin-devdoc",
"alias": ["devdoc-antd-admin.now.sh", "devdoc.antd-admin.zuiidea.com"],
"type": "static",
"public": true
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "antd-admin-doc",
"alias": ["doc-antd-admin.now.sh", "doc.antd-admin.zuiidea.com"],
"type": "static",
"public": true
}