From ae78b1450ece2b0eea5f5626b9de345f325c661d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 4 Feb 2015 12:56:52 -0800 Subject: [PATCH] upload documentation to static.druid.io --- docs/_bin/deploy-docs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_bin/deploy-docs.sh b/docs/_bin/deploy-docs.sh index 2ba01a55c12..a294b21319f 100755 --- a/docs/_bin/deploy-docs.sh +++ b/docs/_bin/deploy-docs.sh @@ -64,7 +64,9 @@ fi if [ "$version" != "latest" ] && [ -n "$opt_api" ] ; then (cd $src && mvn javadoc:aggregate) mkdir -p $target/api/$version - rsync -a --delete "$src/target/site/apidocs/" $target/api/$version + if [ -z "$opt_dryrun" ]; then + s3cmd sync --delete-removed "$src/target/site/apidocs/" "s3://static.druid.io/api/$version/" + fi fi updatebranch=update-docs-$version @@ -79,7 +81,7 @@ if [ -z "$opt_dryrun" ]; then curl -u "$GIT_TOKEN:x-oauth-basic" -XPOST -d@- \ https://api.github.com/repos/druid-io/druid-io.github.io/pulls <