WillemJiang commented on a change in pull request #26: .travis.yml for 
integrate travis ci
URL: 
https://github.com/apache/incubator-servicecomb-docs/pull/26#discussion_r208414384
 
 

 ##########
 File path: .travis.yml
 ##########
 @@ -0,0 +1,17 @@
+script:
+  - npm install gitbook-cli -g
+  - gitbook build java-chassis-reference docs
+  - git clone --depth=10 --branch=master https://$PUSH_TARGET_URL 
servicecomb-java-chassis-doc
+after_success:
+  - cp -r docs/ servicecomb-java-chassis-doc/docs/
+  - cd servicecomb-java-chassis-doc
+  - git checkout -b master
+  - git add docs
+  - git commit -m "update the website docs source"
+  - git push --force https://$DEPLOY_TOKEN@$PUSH_TARGET_URL master
 
 Review comment:
   Please don't use --force  option unless you know the consequence of it.
   BTW, did you find a way to keep the CNAME file?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to