diff --git a/.gitignore b/.gitignore index 025e2b9..d61eba9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site .project .idea/ *.iml +site-content/ diff --git a/README.md b/README.md index 40d3d02..2c07fb6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # jclouds -This repository supports the GitHub Pages site for jclouds. See and read more at [http://www.jclouds.org](http://www.jclouds.org). \ No newline at end of file +This repository supports the GitHub Pages site for jclouds. See and read more at [http://www.jclouds.org](http://www.jclouds.org). + +To deploy web site to ASF: +* have jekyll installed +* sh ./deploy-site.sh $uid $pwd (with $uid yout ASF account $pwd your ASF password) + diff --git a/deploy-site.sh b/deploy-site.sh new file mode 100644 index 0000000..fa7d6fa --- /dev/null +++ b/deploy-site.sh @@ -0,0 +1,14 @@ +jekyll build +if [ ! -d "site-content" ]; then + svn co https://svn.apache.org/repos/asf/incubator/jclouds/site-content +else + svn up site-content +fi +cp -r _site/* site-content/ +#jekyll copy site-content to _site so remove it +rm -rf site-content/site-content +rm site-content/deploy-site.sh +#add new files +cd site-content +svn st | grep ? | awk '{print $2}'| xargs svn --no-auto-props add {} \; +svn ci --no-auth-cache --username $1 --password $2 -m'deploy jclouds site content'