Release to maven central: do not run the tests twice (#977)

This commit is contained in:
Daniel Garnier-Moiroux 2026-05-21 17:14:51 +02:00 • committed by GitHub
commit 6b71136224
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}