File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a Java project with Maven
1+ # This workflow will build a Java project with Maven and publish to Maven Central
22# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33
44name : Maven Package
@@ -11,15 +11,16 @@ jobs:
1111 publish :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v4
1515 - name : Set up Maven Central Repository
16- uses : actions/setup-java@v2
16+ uses : actions/setup-java@v4
1717 with :
1818 java-version : ' 8'
19- distribution : ' adopt '
19+ distribution : ' temurin '
2020 server-id : ossrh
2121 server-username : MAVEN_USERNAME
2222 server-password : MAVEN_PASSWORD
23+ cache : maven
2324 - id : install-secret-key
2425 name : Install gpg secret key
2526 run : |
Original file line number Diff line number Diff line change 150150 <plugin >
151151 <groupId >org.sonatype.plugins</groupId >
152152 <artifactId >nexus-staging-maven-plugin</artifactId >
153+ <version >1.6.7</version >
153154 <extensions >true</extensions >
154155 <configuration >
155156 <serverId >ossrh</serverId >
156- <nexusUrl >https://oss. sonatype.org /</nexusUrl >
157+ <nexusUrl >https://ossrh-staging-api.central. sonatype.com /</nexusUrl >
157158 <autoReleaseAfterClose >true</autoReleaseAfterClose >
158159 </configuration >
159160 </plugin >
You can’t perform that action at this time.
0 commit comments