Skip to content

Commit

Permalink
fix: update github action for deploy site
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Feb 29, 2024
1 parent d1a9a91 commit deb5233
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Deploy site to Github pages
run: |
mvn -B install --file pom.xml -s settings-template.xml
mvn -B --projects plugin-reporting site --file pom.xml -s settings-template.xml
cp -R core/target/site plugin-reporting/target/site/core
mvn -B --projects mojo site --file pom.xml -s settings-template.xml
cp -R core/target/site mojo/target/site/core
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
73 changes: 36 additions & 37 deletions mojo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -299,43 +299,6 @@

<profiles>

<profile>
<id>report</id>

<build>
<plugins>
<!--
=====================================================
DEPLOY SITE TO GITHUB
=====================================================
-->

<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Creating site for ${project.artifactId} ${project.version}</message>
<server>github</server>
<repositoryName>maven-confluence-plugin</repositoryName>
<repositoryOwner>bsorrentino</repositoryOwner>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>


</plugins>

</build>
</profile>

<profile>
<id>confluence</id>

Expand Down Expand Up @@ -388,6 +351,42 @@

</profile>

<!--profile>
<id>report</id>

<build>
<plugins>

=====================================================
DEPLOY SITE TO GITHUB
=====================================================

<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Creating site for ${project.artifactId} ${project.version}</message>
<server>github</server>
<repositoryName>maven-confluence-plugin</repositoryName>
<repositoryOwner>bsorrentino</repositoryOwner>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>


</plugins>

</build>
</profile-->


</profiles>
</project>
4 changes: 2 additions & 2 deletions site-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

mvn site:site --projects plugin-reporting
mvn site:site --projects mojo
mvn javadoc:javadoc --projects core -DreportOutputDirectory=$(pwd)/plugin-reporting/target/site/core/apidocs
mvn -Preport --projects plugin-reporting site
mvn -Preport --projects mojo site

0 comments on commit deb5233

Please sign in to comment.