Skip to content

Commit 93f94c6

Browse files
authored
---
yaml --- r: 5831 b: refs/heads/master c: 2bd120d h: refs/heads/master i: 5829: b38bf60 5827: 3b7aa5b 5823: 832444a
1 parent 35bd726 commit 93f94c6

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c2eee1b3ef33cd71dfce72e62cd521669fb659d6
2+
refs/heads/master: 2bd120d5bfa3f37110275e6da8cb01e7d90f8ba8
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 4154fc3537163299162c8c903f2d1386463dd7a3
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/utilities/create_site.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,21 @@ fi
1515
git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/google-cloud-java/ tmp_gh-pages
1616
mkdir -p tmp_gh-pages/$SITE_VERSION_BASE
1717
mvn 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[@]}
2223
do
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 ..
2430
done
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
2833
echo "<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
2934
git add index.html
3035
echo "<html><head><script>window.location.replace('/google-cloud-java/${SITE_VERSION_BASE}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html

0 commit comments

Comments
 (0)