From de1c836172bc9bb97db1efe9760cbeea667acedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Sat, 18 Mar 2017 14:35:53 +0100 Subject: [PATCH] use scm-publish plugin to deploy site to gh-pages --- jansi-website/pom.xml | 31 ++++++++++++++++++++------- jansi-website/src/community/site.page | 25 ++++++--------------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/jansi-website/pom.xml b/jansi-website/pom.xml index daaae4fe..aac36557 100644 --- a/jansi-website/pom.xml +++ b/jansi-website/pom.xml @@ -34,6 +34,13 @@ Tomcat60 + + + jansi-gh-pages + scm:git:https://github.com/fusesource/jansi.git + + + @@ -142,8 +149,6 @@ ${basedir}/src - website.fusesource.org - dav:http://fusesource.com/forge/dav/${forge-project-id}/versions/${project.version}/website/ @@ -154,15 +159,26 @@ package + + + + + org.apache.maven.plugins + maven-scm-publish-plugin + 1.1 + + gh-pages + ${project.build.directory}/sitegen + + - deploy + gh-pages - deploy + publish-scm - deploy - + install + - @@ -187,7 +203,6 @@ 0 - diff --git a/jansi-website/src/community/site.page b/jansi-website/src/community/site.page index 19161fa3..7179886e 100644 --- a/jansi-website/src/community/site.page +++ b/jansi-website/src/community/site.page @@ -44,7 +44,7 @@ How the website works also built using Maven so, you would cd ${project_id}-website - mvn install + mvn package If you want to edit the files in your text editor and be able to immediately see the site re-rendered in a browser then use @@ -62,22 +62,11 @@ How the website works .right :markdown - The site is automatically deployed by the CI builds, so you can - simply wait for the changes to be automatically pushed to the project - site. - - You can manually deploy the site using Maven: +# The site is automatically deployed by the CI builds, so you can +# simply wait for the changes to be automatically pushed to the project +# site. - mvn deploy - - Since deployment to our webserver requires proper authorization, - you will need to add an entry to your ~/.m2/settings.xml file simlilar - to: + The site is deployed through GitHub gh-pages branch: you can deploy the site using Maven: - {pygmentize:: xml} - - ${project_id}-website - xxxx - xxxxx - - {pygmentize} \ No newline at end of file + mvn install + \ No newline at end of file