From 59db19dfa0871f93082f1e7436b7837df54545bf Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Sat, 2 Dec 2023 10:19:45 +0100 Subject: [PATCH] Reuse plexus-pom action for CI --- .github/workflows/maven.yml | 40 +++++++++---------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e413e2b..09feae4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -17,37 +17,15 @@ name: GitHub CI -on: [ push, pull_request ] +on: [push, pull_request] jobs: build: - - strategy: - matrix: - os: [ ubuntu-latest,windows-latest, macOS-latest ] - java: [ 8, 11, 17 ] - fail-fast: false - - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up cache for ~./m2/repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - maven-${{ matrix.os }}-java${{ matrix.java }}- - maven-${{ matrix.os }}- - - - name: Set up JDK - uses: actions/setup-java@v3 - with: - distribution: adopt - java-version: ${{ matrix.java }} - - - name: Build with Maven - run: mvn --batch-mode --errors --show-version verify + name: Build it + uses: codehaus-plexus/.github/.github/workflows/maven.yml@master + + deploy: + name: Deploy + needs: build + uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master + secrets: inherit