Skip to content

Commit fce214a

Browse files
committed
update latest/ symlink on tagged builds
1 parent 51dd4a0 commit fce214a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jsdoc/publish.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/speech-javascript-sdk" ] &&
2121
mkdir $TRAVIS_BRANCH
2222
cp -Rf ../doc/watson-speech/*/* ./$TRAVIS_BRANCH
2323

24+
# update the latest/ symlink
25+
# on tagged builds, $TRAVIS_TAG is set to the tag, but it's blank on regular builds, unlike $TRAVIS_BRANCH
26+
if [ $TRAVIS_TAG ]; then
27+
rm latest
28+
ln -s ./$TRAVIS_TAG latest
29+
fi
30+
2431
../jsdoc/generate_index_html.sh > index.html
2532

2633
git add -f -A .

0 commit comments

Comments
 (0)