Merge pull request #500 from CycloneDX/issue_498 #351
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish documentation | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: { } | |
jobs: | |
build-documentation: | |
name: "Build documentation" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Required to push commits to gh-pages branch | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # tag=v4.5.0 | |
with: | |
distribution: temurin | |
java-version: 8 | |
- name: Build with Maven | |
run: mvn -B --no-transfer-progress package | |
- name: Deploy documentation | |
uses: JamesIves/github-pages-deploy-action@62fec3add6773ec5dbbf18d2ee4260911aa35cf4 # tag=v4.6.9 | |
with: | |
branch: gh-pages | |
folder: target/reports/apidocs |