Skip to content

Workflow file for this run

name: Publish documentation
run-name: Build
on:
push:
branches:
- gh-pages
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: build javadoc
run: mvn package -Pgenerate-javadoc -DskipTest
- name: install python packages
run: pip install -r ./docs-scripts/requirements.txt
- name: build docs
run: python ./docs-scripts/build.py
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -f docs/
git commit -m "update docs" -a
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}