Skip to content

Commit f8fdb40

Browse files
committed
fix publish script [semver patch]
1 parent 9b31daf commit f8fdb40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/jsdoc/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/speech-javascript-sdk" ] &&
1313

1414
git config --global user.email "[email protected]"
1515
git config --global user.name "travis-ci"
16-
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/watson-developer-cloud/speech-javascript-sdk gh-pages
16+
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/watson-developer-cloud/speech-javascript-sdk gh-pages || echo "git clone failed" && exit 1
1717

1818
pushd gh-pages
1919
# on tagged builds, $TRAVIS_BRANCH is the tag (e.g. v1.2.3), otherwise it's the branch name (e.g. master)
@@ -28,7 +28,7 @@ if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/speech-javascript-sdk" ] &&
2828
ln -s ./$TRAVIS_TAG latest
2929
fi
3030

31-
generate_index_html.sh > index.html
31+
../scripts/jsdoc/generate_index_html.sh > index.html
3232

3333
git add -f -A .
3434
git commit -m "JSDdoc for $TRAVIS_BRANCH ($TRAVIS_COMMIT)"

0 commit comments

Comments
 (0)