diff --git a/deploy_website.sh b/deploy_website.sh index 6cccd7acc50e..56aadcfc5881 100755 --- a/deploy_website.sh +++ b/deploy_website.sh @@ -2,13 +2,17 @@ set -ex +REPO="git@github.com:square/okhttp.git" +GROUP_ID="com.squareup.okhttp" +ARTIFACT_ID="okhttp" + DIR=temp-clone # Delete any existing temporary website clone rm -rf $DIR # Clone the current repo into temp folder -git clone git@github.com:square/okhttp.git $DIR +git clone $REPO $DIR # Move working directory into temp folder cd $DIR @@ -22,6 +26,11 @@ rm -rf * # Copy website files from real repo cp -R ../website/* . +# Download the latest javadoc +curl -L "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip +mkdir javadoc +unzip javadoc.zip -d javadoc + # Stage all files in git and create a commit git add . git add -u diff --git a/website/index.html b/website/index.html index 3860a803bfd0..df639c23dd3c 100644 --- a/website/index.html +++ b/website/index.html @@ -167,7 +167,7 @@