Skip to content

Publish Documentation #36

Publish Documentation

Publish Documentation #36

Workflow file for this run

name: Publish Documentation
on:
workflow_run:
workflows: [ "Release" ]
types: [ completed ]
push:
branches:
- documentation
jobs:
build:
name: Check materials and publish if tagged
runs-on: ubuntu-latest
steps:
- name: Fetch source code
uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Generate JavaDoc
run: mvn compile javadoc:javadoc
- name: Deploy JavaDoc on GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site/apidocs
keep_files: false
- name: QA check Markdown content
uses: nosborn/[email protected]
with:
files: docs/
- name: Check links in markdown
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
folder-path: 'docs/'
- name: Run mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- run: |
mdbook build
- name: Deploy Book on GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/docs
destination_dir: ./book
keep_files: true