Skip to content

Commit d220e33

Browse files
authored
fix
1 parent b38a35c commit d220e33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pipeline.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
build:
5151
name: Build and publish to Maven Central 🔨
5252
runs-on: ubuntu-latest
53+
env:
54+
MAVEN_ARGS: -Dmaven.test.skip=true
5355
outputs:
5456
pom_version: ${{ needs.bump.outputs.pom_version }}
5557
major_version: ${{ needs.bump.outputs.major_version }}
@@ -83,9 +85,9 @@ jobs:
8385
run: |
8486
mvn versions:set -DnewVersion=${{ needs.bump.outputs.major_version }}.${{ needs.bump.outputs.minor_version }}.${{ needs.bump.outputs.build_version }} -DgenerateBackupPoms=false
8587
- name: Build and verify with Maven 🔨
86-
run: mvn --batch-mode --update-snapshots verify -Dmaven.test.skip=true
88+
run: mvn --batch-mode --update-snapshots verify $MAVEN_ARGS
8789
- name: Publish to Maven Central
88-
run: mvn deploy
90+
run: mvn deploy $MAVEN_ARGS
8991
env:
9092
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
9193
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)