Skip to content

codehaus-plexus/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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