mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-20 14:33:49 +00:00
Added CI for document.
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "antd-admin-devdoc",
|
||||
"alias": ["devdoc-antd-admin.now.sh", "devdoc.antd-admin.zuiidea.com"],
|
||||
"type": "static",
|
||||
"public": true
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "antd-admin-doc",
|
||||
"alias": ["doc-antd-admin.now.sh", "doc.antd-admin.zuiidea.com"],
|
||||
"type": "static",
|
||||
"public": true
|
||||
}
|
||||
Reference in New Issue
Block a user