Skip to content

Commit bc37bf8

Browse files
senivamlukasj
authored andcommitted
separate update profile for TCK gh-pages
Signed-off-by: Maxim Nesen <[email protected]>
1 parent 67464aa commit bc37bf8

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

tck/tck-docs/userguide/pom.xml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<properties>
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3636
<site.output.dir>${project.build.directory}/staging</site.output.dir>
37-
<maven.site.skip>true</maven.site.skip>
3837
<asciidoctorj.version>2.4.2</asciidoctorj.version>
3938
<asciidoctorj.diagram.version>2.1.0</asciidoctorj.diagram.version>
4039
<asciidoctorj.maven.plugin.version>2.1.0</asciidoctorj.maven.plugin.version>
@@ -190,24 +189,6 @@
190189
</execution>
191190
</executions>
192191
</plugin>
193-
<plugin>
194-
<groupId>org.apache.maven.plugins</groupId>
195-
<artifactId>maven-scm-publish-plugin</artifactId>
196-
<executions>
197-
<execution>
198-
<id>deploy-site</id>
199-
<phase>deploy</phase>
200-
<goals>
201-
<goal>publish-scm</goal>
202-
</goals>
203-
<configuration>
204-
<scmBranch>gh-pages</scmBranch>
205-
<skipDeletedFiles>false</skipDeletedFiles>
206-
<checkinComment>Update site</checkinComment>
207-
</configuration>
208-
</execution>
209-
</executions>
210-
</plugin>
211192
</plugins>
212193

213194
<pluginManagement>
@@ -274,4 +255,34 @@
274255
</plugins>
275256
</pluginManagement>
276257
</build>
258+
<profiles>
259+
<profile>
260+
<id>updateGhPages</id>
261+
<activation>
262+
<activeByDefault>false</activeByDefault>
263+
</activation>
264+
<build>
265+
<plugins>
266+
<plugin>
267+
<groupId>org.apache.maven.plugins</groupId>
268+
<artifactId>maven-scm-publish-plugin</artifactId>
269+
<executions>
270+
<execution>
271+
<id>deploy-site</id>
272+
<phase>deploy</phase>
273+
<goals>
274+
<goal>publish-scm</goal>
275+
</goals>
276+
<configuration>
277+
<scmBranch>gh-pages</scmBranch>
278+
<skipDeletedFiles>false</skipDeletedFiles>
279+
<checkinComment>Update site</checkinComment>
280+
</configuration>
281+
</execution>
282+
</executions>
283+
</plugin>
284+
</plugins>
285+
</build>
286+
</profile>
287+
</profiles>
277288
</project>

0 commit comments

Comments
 (0)