From 500033ba186852e06b43fc6affe8ae9987fc94ca Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:29:48 +0100 Subject: [PATCH] add verification step to release workflow --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a2ba706..2f50a916 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,35 @@ on: types: [published] jobs: + verify: + name: Verify build + runs-on: ubuntu-latest + strategy: + fail-fast: true + + steps: + - name: Checkout repository + uses: actions/checkout@v4.2.2 + + - name: Setup Java and Maven cache + uses: actions/setup-java@v4.5.0 + with: + distribution: 'temurin' + java-version: '17' + check-latest: true + cache: 'maven' + + - name: Verify build + run: > + ./mvnw clean verify + --batch-mode + --update-snapshots + --no-transfer-progress + release: name: Release runs-on: ubuntu-latest + needs: [verify] strategy: fail-fast: true @@ -35,6 +61,7 @@ jobs: - name: Deploy to staging and release run: > ./mvnw clean deploy -P release + -DskipTests --batch-mode --update-snapshots --no-transfer-progress