Skip to content

Write javadoc to /site target folder #466

Write javadoc to /site target folder

Write javadoc to /site target folder #466

Workflow file for this run

name: maven-ci-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Adopt OpenJDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: '21'
cache: maven
- name: Login to registry.redhat.io
uses: docker/[email protected]
with:
username: ${{ secrets.REDHAT_REGISTRY_USER }}
password: ${{ secrets.REDHAT_REGISTRY_TOKEN }}
registry: registry.redhat.io
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn ${{ runner.debug && '-X -e' || '' }} -B install -Psonar
- name: Publish doc
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site
destination_dir: latest
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: Publish latest doc