Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
configure publish site to gh-pages
Browse files Browse the repository at this point in the history
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
  • Loading branch information
hboutemy committed Sep 7, 2023
1 parent 47c6297 commit d940167
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify
30 changes: 28 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</repository>
<site>
<id>gh-pages</id>
<url>scm:git:ssh://git@github.com/sigstore/sigstore-maven-plugin.git</url>
<url>scm:git:https://github.com/sigstore/sigstore-maven-plugin.git</url>
</site>
</distributionManagement>

Expand Down Expand Up @@ -209,6 +209,10 @@
<artifactId>maven-plugin-plugin</artifactId>
<version>3.9.0</version>
</plugin>
<plugin>
<artifactId>maven-plugin-report-plugin</artifactId>
<version>3.9.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
Expand Down Expand Up @@ -327,6 +331,24 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.basedir}/README.md"
tofile="${project.build.directory}/generated-site/markdown/index.md"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -355,7 +377,11 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<artifactId>maven-plugin-report-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</reporting>
Expand Down
64 changes: 0 additions & 64 deletions src/site/markdown/index.md.vm

This file was deleted.

12 changes: 8 additions & 4 deletions src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.10.0</version>
<version>1.11.1</version>
</skin>

<edit>${project.scm.url}</edit>
Expand All @@ -39,13 +39,17 @@

<body>
<breadcrumbs>
<item name="Sigstore" href="https://sigstore.github.io/" />
<item name="Maven plugin" href="https://sigstore.github.io/sigstore-maven-plugin/" />
<item name="Sigstore" href="https://github.com/sigstore/" />
<item name="Sigstore Maven Plugin" href="https://sigstore.github.io/sigstore-maven-plugin/" />
</breadcrumbs>

<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html"/>
<item name="Goals" href="plugin-info.html">
<item name="sigstore:sign" href="sign-mojo.html"/>
<item name="sigstore:jarsign" href="jarsign-mojo.html"/>
</item>
<item name="Javadoc" href="apidocs/index.html"/>
</menu>
<menu ref="reports" />
</body>
Expand Down

0 comments on commit d940167

Please sign in to comment.