File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: c2eee1b3ef33cd71dfce72e62cd521669fb659d6
2+ refs/heads/master: 2bd120d5bfa3f37110275e6da8cb01e7d90f8ba8
33refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44refs/heads/gh-pages: 4154fc3537163299162c8c903f2d1386463dd7a3
55refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
Original file line number Diff line number Diff line change 1515git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/google-cloud-java/ tmp_gh-pages
1616mkdir -p tmp_gh-pages/$SITE_VERSION_BASE
1717mvn site -DskipTests -Djava.util.logging.config.file=logging.properties
18- mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=http://googlecloudplatform.github.io/google-cloud-java/site/${SITE_VERSION_BASE} /
19- cd tmp_gh-pages
2018
21- for dir in ../target/staging/${SITE_VERSION_BASE} *
19+ version_bases=(${SITE_VERSION_BASE} latest)
20+ rm -rf tmp_gh-pages/latest
21+ mkdir tmp_gh-pages/latest
22+ for version_base in ${version_bases[@]}
2223do
23- cp -r ${dir} /* $SITE_VERSION_BASE /
24+ mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=http://googlecloudplatform.github.io/google-cloud-java/site/${version_base} /
25+ cd tmp_gh-pages
26+ cp -r ../target/staging/* /* $version_base
27+ sed -i " s/{{SITE_VERSION}}/$SITE_VERSION /g" ${version_base} /index.html # Update "Quickstart with Maven" to reflect version change
28+ git add $version_base
29+ cd ..
2430done
2531
26- sed -i " s/{{SITE_VERSION}}/$SITE_VERSION /g" ${SITE_VERSION_BASE} /index.html # Update "Quickstart with Maven" to reflect version change
27- git add $SITE_VERSION_BASE
32+ cd tmp_gh-pages
2833echo " <html><head><meta http-equiv=\" refresh\" content=\" 0; URL='http://GoogleCloudPlatform.github.io/google-cloud-java/${SITE_VERSION_BASE} /index.html'\" /></head><body></body></html>" > index.html
2934git add index.html
3035echo " <html><head><script>window.location.replace('/google-cloud-java/${SITE_VERSION_BASE} /apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
You can’t perform that action at this time.
0 commit comments