From 6b711362241c1415cafeb6ad61593d7bb969eb63 Mon Sep 17 00:00:00 2001 From: Daniel Garnier-Moiroux Date: Thu, 21 May 2026 17:14:51 +0200 Subject: [PATCH] Release to maven central: do not run the tests twice (#977) --- .github/workflows/maven-central-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml index 8df337e..9bee5b0 100644 --- a/.github/workflows/maven-central-release.yml +++ b/.github/workflows/maven-central-release.yml @@ -26,18 +26,18 @@ jobs: with: node-version: '20' + # Deploy runs the integration tests, but only with Jackson 3 + # We run Jackson 2 IT manually - name: Jackson 2 Integration Tests run: mvn -pl mcp-test -am -Pjackson2 test - - name: Build and Test - run: mvn clean verify - + # Deploy runs all previous maven goals, including test and verify - name: Publish to Maven Central run: | mvn --batch-mode \ -Prelease \ -Pjavadoc \ - deploy + clean deploy env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}