Skip to content

Commit

Permalink
add verification step to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
larsk21 committed Nov 26, 2024
1 parent 405a4a9 commit 500033b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- name: Setup Java and Maven cache
uses: actions/[email protected]
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

Expand All @@ -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
Expand Down

0 comments on commit 500033b

Please sign in to comment.