Skip to content

modernize workflow

modernize workflow #38

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ master ]
repository_dispatch:
types: [rebuild]
jobs:
build:
name: Maven
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build with Maven
run: mvn -e generate-sources install
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: update-site/target/repository # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true