Create GitHub workflow (in in .github/workflows/maven.yml
) in project with content:
name: Verify
on: [push, pull_request]
jobs:
build:
name: Verify
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master (or tag)
Excludes from build matrix:
...
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master (or tag)
with:
matrix-exclude: >
[
{"jdk": "8"}, # exclude jdk 8 from all builds
{"os": "windows-latest"}, # exclude windows from all builds
{"jdk": "8", "os": "windows-latest"} # exclude jdk 8 on windows
]
Includes to build matrix:
...
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master (or tag)
with:
matrix-include: >
[
{"jdk": "21", "os": "linux-latest", distribution: "corretto" } # include AWS Corretto Java 21 on linux
]
To have the github release filled with Pull request content
in .github
create a file release-drafter.yml
with such content
_extends: .github
tag-template: plexus-utils-$NEXT_MINOR_VERSION (your tag name format)
in .github/workflows/release-drafter.yml
name: Release Drafter
on:
push:
branches:
- master
jobs:
update_release_draft:
uses: codehaus-plexus/.github/.github/workflows/release-drafter.yml@master