Skip to content

Commit

Permalink
Reuse plexus-pom action for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Dec 2, 2023
1 parent 5b38c77 commit 45c2e88
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,11 @@ on: [push, pull_request]

jobs:
build:
name: Build it
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master

strategy:
matrix:
os: [ubuntu-latest,windows-latest, macOS-latest]
java: [8, 11, 17, 20]
jdk: [temurin]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
cache: 'maven'
distribution: ${{ matrix.jdk }}
java-version: ${{ matrix.java }}

- name: Build with Maven
run: mvn install javadoc:javadoc -e -B -V
deploy:
name: Deploy
needs: build
uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
secrets: inherit

0 comments on commit 45c2e88

Please sign in to comment.