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: with:
node-version: '20' node-version: '20'
# Deploy runs the integration tests, but only with Jackson 3
# We run Jackson 2 IT manually
- name: Jackson 2 Integration Tests - name: Jackson 2 Integration Tests
run: mvn -pl mcp-test -am -Pjackson2 test run: mvn -pl mcp-test -am -Pjackson2 test
- name: Build and Test # Deploy runs all previous maven goals, including test and verify
run: mvn clean verify
- name: Publish to Maven Central - name: Publish to Maven Central
run: | run: |
mvn --batch-mode \ mvn --batch-mode \
-Prelease \ -Prelease \
-Pjavadoc \ -Pjavadoc \
deploy clean deploy
env: env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}