Skip to content

Commit

Permalink
[ci] enable doc publication
Browse files Browse the repository at this point in the history
  • Loading branch information
rmannibucau committed Mar 10, 2024
1 parent db45967 commit f6262b3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/maven-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,22 @@ jobs:
run: mvn package -e
- name: Remove Snapshots Before Caching
run: find ~/.m2/repository -name '*SNAPSHOT' | xargs rm -Rf
# DOC: ensure to set the needed secrets (see README.adoc)
# deploy-doc:
# if: github.ref == 'refs/heads/main'
# name: Documentation
# runs-on: ubuntu-20.04
# steps:
# - name: Clone
# id: clone
# uses: actions/checkout@v4
# - name: Set up JDK 21
# id: java21
# uses: actions/setup-java@v4
# with:
# distribution: 'zulu'
# java-version: '21'
# cache: 'maven'
# - name: Deploy-Documentation
# run: mvn package -Pgh-pages -e
# - name: Remove Snapshots Before Caching
# run: find ~/.m2/repository -name '*SNAPSHOT' | xargs rm -Rf
deploy-doc:
if: github.ref == 'refs/heads/main'
name: Documentation
runs-on: ubuntu-20.04
steps:
- name: Clone
id: clone
uses: actions/checkout@v4
- name: Set up JDK 21
id: java21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Deploy-Documentation
run: mvn package -Pgh-pages -e
- name: Remove Snapshots Before Caching
run: find ~/.m2/repository -name '*SNAPSHOT' | xargs rm -Rf
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,15 @@
<preAction>
<type>io.yupiik.fusion.documentation.OpenRpcGenerator</type>
<configuration>
<output>${project.basedir}/src/main/minisite/content/_partials/generated/${artifactId}.openrpc.json</output>
<title>${artifactId} API</title>
<output>${project.basedir}/src/main/minisite/content/_partials/generated/${project.artifactId}.openrpc.json</output>
<title>${project.name} API</title>
</configuration>
</preAction>
<preAction>
<type>io.yupiik.fusion.documentation.OpenRPC2Adoc</type>
<configuration>
<input>${project.build.outputDirectory}/META-INF/fusion/jsonrpc/openrpc.json</input>
<output>${project.basedir}/src/main/minisite/content/_partials/generated/${artifactId}.openrpc.adoc</output>
<output>${project.basedir}/src/main/minisite/content/_partials/generated/${project.artifactId}.openrpc.adoc</output>
</configuration>
</preAction>
<preAction>
Expand Down Expand Up @@ -634,7 +634,7 @@
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.11</version>
<configuration>
<projectType>library</projectType>
<schemaVersion>1.4</schemaVersion>
Expand Down

0 comments on commit f6262b3

Please sign in to comment.