File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,30 @@ jobs:
87
87
-Dmaven.test.failure.ignore=false \
88
88
-DnexusUrl=https://s01.oss.sonatype.org/ \
89
89
-DserverId=ossrh \
90
+ -DaltDeploymentRepository=ossrh::default::https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ \
91
+ -DrepositoryId=ossrh \
92
+ -Dusername=${{ secrets.OSSRH_USERNAME_TOKEN }} \
93
+ -Dpassword=${{ secrets.OSSRH_PASSWORD_TOKEN }} \
90
94
-X \
91
95
-e \
92
96
--debug \
93
97
-Dgpg.verbose=true \
94
98
-Dgpg.debug=true
95
99
96
100
echo "Checking deployment status..."
97
- mvn nexus-staging:rc-list
101
+ mvn nexus-staging:rc-list \
102
+ -DserverId=ossrh \
103
+ -Dusername=${{ secrets.OSSRH_USERNAME_TOKEN }} \
104
+ -Dpassword=${{ secrets.OSSRH_PASSWORD_TOKEN }}
98
105
99
106
echo "Closing staging repository..."
100
- mvn nexus-staging:rc-close
107
+ mvn nexus-staging:rc-close \
108
+ -DserverId=ossrh \
109
+ -Dusername=${{ secrets.OSSRH_USERNAME_TOKEN }} \
110
+ -Dpassword=${{ secrets.OSSRH_PASSWORD_TOKEN }}
101
111
102
112
echo "Releasing to Maven Central..."
103
- mvn nexus-staging:rc-release
113
+ mvn nexus-staging:rc-release \
114
+ -DserverId=ossrh \
115
+ -Dusername=${{ secrets.OSSRH_USERNAME_TOKEN }} \
116
+ -Dpassword=${{ secrets.OSSRH_PASSWORD_TOKEN }}
You can’t perform that action at this time.
0 commit comments