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

Commit 491e232

Browse files
committed
add script to deploy web site
1 parent c37ebee commit 491e232

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _site
33
.project
44
.idea/
55
*.iml
6+
site-content/

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# jclouds
22

3-
This repository supports the GitHub Pages site for jclouds. See and read more at [http://www.jclouds.org](http://www.jclouds.org).
3+
This repository supports the GitHub Pages site for jclouds. See and read more at [http://www.jclouds.org](http://www.jclouds.org).
4+
5+
To deploy web site to ASF:
6+
* have jekyll installed
7+
* sh ./deploy-site.sh $uid $pwd (with $uid yout ASF account $pwd your ASF password)
8+

deploy-site.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
jekyll build
2+
if [ ! -d "site-content" ]; then
3+
svn co https://svn.apache.org/repos/asf/incubator/jclouds/site-content
4+
else
5+
svn up site-content
6+
fi
7+
cp -r _site/* site-content/
8+
#jekyll copy site-content to _site so remove it
9+
rm -rf site-content/site-content
10+
rm site-content/deploy-site.sh
11+
#add new files
12+
cd site-content
13+
svn st | grep ? | awk '{print $2}'| xargs svn --no-auto-props add {} \;
14+
svn ci --no-auth-cache --username $1 --password $2 -m'deploy jclouds site content'

0 commit comments

Comments
 (0)