File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,15 +21,14 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -
2121 git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/gcloud-java/ tmp_gh-pages
2222 cd tmp_gh-pages
2323 mkdir -p site/latest/
24- touch site/latest/index.html
2524 echo " <html><head><meta http-equiv=\" refresh\" content=\" 0; URL='http://GoogleCloudPlatform.github.io/gcloud-java/site/${SITE_VERSION} /index.html'\" /></head><body></body></html>" > site/latest/index.html
2625 git add site/latest/index.html
2726
2827 # Update "Quickstart with Maven" block on landing page to reflect latest version
2928 sed -i " s/{{SITE_VERSION}}/$SITE_VERSION /g" site/${SITE_VERSION} /index.html
3029 git add site/${SITE_VERSION} /index.html
3130
32- git commit -m " Updating to reflect latest website version"
31+ git commit -m " Update the redirect in ' latest/index.html' and the version in the 'Quickstart with Maven' landing page box to $SITE_VERSION "
3332 git config --global push.default simple
3433 git push --quiet " https://${CI_DEPLOY_USERNAME} :${CI_DEPLOY_PASSWORD} @github.com/GoogleCloudPlatform/gcloud-java.git" > /dev/null 2>&1
3534 fi
You can’t perform that action at this time.
0 commit comments