Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 1.67 KB

README.md

File metadata and controls

73 lines (54 loc) · 1.67 KB

Codehaus Plexus shared GitHub Actions and configuration

Usage github build action

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": "24-ea", "os": "ubuntu-latest", distribution: "temurin" } # include latest Java 24-ea on Ubuntu
        ]

Usage release-drafter

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

Resources