You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/02/10 06:38:51 UTC
[servicecomb-docs] branch master updated: correct deploy script
(#118)
This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-docs.git
The following commit(s) were added to refs/heads/master by this push:
new d3b3e2b correct deploy script (#118)
d3b3e2b is described below
commit d3b3e2b2140cad8362eafec8361612b3273d4eae
Author: bao liu <bi...@qq.com>
AuthorDate: Mon Feb 10 14:38:40 2020 +0800
correct deploy script (#118)
---
.travis.yml | 9 +++++----
scripts/travis.sh | 4 ++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 90d913c..b3ba8d8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,9 @@
-before_install:
+install:
- chmod +x scripts/travis.sh
-script: scripts/travis.sh install
-after_success:
- script: scripts/travis.sh deploy
+script:
+ - scripts/travis.sh script
+after_success:
+ - scripts/travis.sh after_success
branches:
only:
- master
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 58b2e67..24826a0 100644
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -21,7 +21,7 @@ echo "start building servicecomb-docs."
echo "env TRAVIS_BRANCH=$TRAVIS_BRANCH"
echo "env PARAM1=$1"
-if [ "$1" == "install" ]; then
+if [ "$1" == "script" ]; then
npm install gitbook-cli -g
gitbook build java-chassis-reference docs/java-chassis
gitbook build saga-reference docs/saga
@@ -34,7 +34,7 @@ if [ "$1" == "install" ]; then
else
exit 1
fi
-elif [ "$1" == "deploy" ]; then
+elif [ "$1" == "after_success" ]; then
cd servicecomb-java-chassis-doc
git checkout -b master
git add docs