Skip to content

Commit 36032a9

Browse files
committed
Release to maven central: do not run the tests twice
1 parent fc330a5 commit 36032a9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/maven-central-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
with:
2727
node-version: '20'
2828

29+
# Deploy runs the integration tests, but only with Jackson 3
30+
# We run Jackson 2 IT manually
2931
- name: Jackson 2 Integration Tests
3032
run: mvn -pl mcp-test -am -Pjackson2 test
3133

32-
- name: Build and Test
33-
run: mvn clean verify
34-
34+
# Deploy runs all previous maven goals, including test and verify
3535
- name: Publish to Maven Central
3636
run: |
3737
mvn --batch-mode \
3838
-Prelease \
3939
-Pjavadoc \
40-
deploy
40+
clean deploy
4141
env:
4242
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4343
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)