From 81ff18565f4f845a5e599fb077f34b547d2c5d00 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Mon, 27 Apr 2015 14:50:04 +0100 Subject: [PATCH] Generate pointer to latest revision --- site/build-and-publish.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/build-and-publish.sh b/site/build-and-publish.sh index 81867e7c..76ccd2a3 100755 --- a/site/build-and-publish.sh +++ b/site/build-and-publish.sh @@ -16,3 +16,9 @@ bundle exec jekyll build --verbose gsutil -m cp -z html,css -a public-read -R _site "gs://docs.weave.works/${OUTPUT}" echo "Published at http://docs.weave.works/${OUTPUT}" + +echo "" \ + | gsutil \ + -h "Content-Type:text/html" \ + -h "Cache-Control:private, max-age=0, no-transform" \ + cp -a "public-read" - "gs://docs.weave.works/weave/${BRANCH}/index.html"