Merge pull request #510 from CycloneDX/dependabot/github_actions/gith… #305
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@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # tag=v4.3.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@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # tag=v4.6.4 | |
with: | |
branch: gh-pages | |
folder: target/apidocs |