From fe3093c5771002c07c97a90348fd7be6d110a483 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Tue, 12 Dec 2023 04:01:14 +0100 Subject: [PATCH] Use shared gh action setup --- .github/workflows/maven.yml | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a990490e..27386c7b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -21,25 +21,14 @@ on: [push, pull_request] jobs: build: - - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - java: [8, 11, 17, 20] - fail-fast: false - - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java }} - distribution: 'temurin' - cache: 'maven' - - - name: Build with Maven - run: mvn verify -e -V -P run-its + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3 + with: + ff-goal: '-P run-its install' # site use project version for reporting + verify-goal: '-P run-its install' # should be the same as for first build + + deploy: + name: Deploy + needs: build + uses: mojohaus/.github/.github/workflows/maven-deploy.yml@master + secrets: inherit