Skip to content

Commit

Permalink
Merge pull request #78 from hboutemy/scm-publish
Browse files Browse the repository at this point in the history
use scm-publish plugin to deploy site to gh-pages
  • Loading branch information
gnodet committed Apr 13, 2017
2 parents 8824843 + de1c836 commit a9ceddb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
31 changes: 23 additions & 8 deletions jansi-website/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>

<distributionManagement>
<site>
<id>jansi-gh-pages</id>
<url>scm:git:https://github.com/fusesource/jansi.git</url>
</site>
</distributionManagement>

<dependencies>

<dependency>
Expand Down Expand Up @@ -142,8 +149,6 @@

<configuration>
<webappDirectory>${basedir}/src</webappDirectory>
<remoteServerId>website.fusesource.org</remoteServerId>
<remoteServerUrl>dav:http://fusesource.com/forge/dav/${forge-project-id}/versions/${project.version}/website/</remoteServerUrl>
</configuration>

<executions>
Expand All @@ -154,15 +159,26 @@
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.1</version>
<configuration>
<scmBranch>gh-pages</scmBranch>
<content>${project.build.directory}/sitegen</content>
</configuration>
<executions>
<execution>
<id>deploy</id>
<id>gh-pages</id>
<goals>
<goal>deploy</goal>
<goal>publish-scm</goal>
</goals>
<phase>deploy</phase>
</execution>
<phase>install</phase>
</execution>
</executions>

</plugin>

<plugin>
Expand All @@ -187,7 +203,6 @@
</systemProperties>
<scanIntervalSeconds>0</scanIntervalSeconds>
</configuration>

</plugin>

<plugin>
Expand Down
25 changes: 7 additions & 18 deletions jansi-website/src/community/site.page
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
<server>
<id>${project_id}-website</id>
<username>xxxx</username>
<password>xxxxx</password>
</server>
{pygmentize}
mvn install

0 comments on commit a9ceddb

Please sign in to comment.