Skip to content

Commit

Permalink
use scm-publish plugin to deploy site to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Mar 18, 2017
1 parent 27d9311 commit de1c836
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 de1c836

Please sign in to comment.