Skip to content

Commit 06893c8

Browse files
committed
Merge pull request #237 from ajkannan/autoupdate-apidocs-version
Fix apidocs/index.html to update version automatically
2 parents 92b6fce + 5253270 commit 06893c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

utilities/after_success.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -
2424
git add $SITE_VERSION
2525
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='http://GoogleCloudPlatform.github.io/gcloud-java/${SITE_VERSION}/index.html'\" /></head><body></body></html>" > index.html
2626
git add index.html
27+
echo "<html><head><script>window.location.replace('/gcloud-java/${SITE_VERSION}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
28+
git add apidocs/index.html
2729
git commit -m "Added a new site for version $SITE_VERSION and updated the root directory's redirect."
2830
git config --global push.default simple
2931
git push --quiet "https://${CI_DEPLOY_USERNAME}:${CI_DEPLOY_PASSWORD}@github.com/GoogleCloudPlatform/gcloud-java.git" > /dev/null 2>&1

0 commit comments

Comments
 (0)