separate update profile for TCK gh-pages
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
diff --git a/tck/tck-docs/userguide/pom.xml b/tck/tck-docs/userguide/pom.xml
index dba6a08..65f9a25 100644
--- a/tck/tck-docs/userguide/pom.xml
+++ b/tck/tck-docs/userguide/pom.xml
@@ -34,7 +34,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<site.output.dir>${project.build.directory}/staging</site.output.dir>
- <maven.site.skip>true</maven.site.skip>
<asciidoctorj.version>2.4.2</asciidoctorj.version>
<asciidoctorj.diagram.version>2.1.0</asciidoctorj.diagram.version>
<asciidoctorj.maven.plugin.version>2.1.0</asciidoctorj.maven.plugin.version>
@@ -190,24 +189,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-scm-publish-plugin</artifactId>
- <executions>
- <execution>
- <id>deploy-site</id>
- <phase>deploy</phase>
- <goals>
- <goal>publish-scm</goal>
- </goals>
- <configuration>
- <scmBranch>gh-pages</scmBranch>
- <skipDeletedFiles>false</skipDeletedFiles>
- <checkinComment>Update site</checkinComment>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
<pluginManagement>
@@ -274,4 +255,34 @@
</plugins>
</pluginManagement>
</build>
+ <profiles>
+ <profile>
+ <id>updateGhPages</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-site</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>publish-scm</goal>
+ </goals>
+ <configuration>
+ <scmBranch>gh-pages</scmBranch>
+ <skipDeletedFiles>false</skipDeletedFiles>
+ <checkinComment>Update site</checkinComment>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>