File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 50
50
build :
51
51
name : Build and publish to Maven Central 🔨
52
52
runs-on : ubuntu-latest
53
+ env :
54
+ MAVEN_ARGS : -Dmaven.test.skip=true
53
55
outputs :
54
56
pom_version : ${{ needs.bump.outputs.pom_version }}
55
57
major_version : ${{ needs.bump.outputs.major_version }}
83
85
run : |
84
86
mvn versions:set -DnewVersion=${{ needs.bump.outputs.major_version }}.${{ needs.bump.outputs.minor_version }}.${{ needs.bump.outputs.build_version }} -DgenerateBackupPoms=false
85
87
- 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
87
89
- name : Publish to Maven Central
88
- run : mvn deploy
90
+ run : mvn deploy $MAVEN_ARGS
89
91
env :
90
92
MAVEN_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
91
93
MAVEN_CENTRAL_TOKEN : ${{ secrets.SONATYPE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments