Release to maven central: do not run the tests twice (#977)
This commit is contained in:
parent
fc330a5885
commit
6b71136224
1 changed files with 4 additions and 4 deletions
8
.github/workflows/maven-central-release.yml
vendored
8
.github/workflows/maven-central-release.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue