Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

Commit

Permalink
add script to deploy web site
Browse files Browse the repository at this point in the history
  • Loading branch information
olamy committed May 8, 2013
1 parent c37ebee commit 491e232
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _site
.project
.idea/
*.iml
site-content/
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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).
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)

14 changes: 14 additions & 0 deletions deploy-site.sh
Original file line number Diff line number Diff line change
@@ -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'

This comment has been minimized.

Copy link
@demobox

demobox May 9, 2013

Member

To prevent password leakage, could we instead store the auth file in a non-publicly accessible location on DEV@cloud, copy it for the duration of the upload (or set SVN_HOME appropriately) and then remove it afterwards?

0 comments on commit 491e232

Please sign in to comment.