Skip to content

Commit 1ea0a43

Browse files
author
Watson Zuo
committed
update publish config
1 parent 703e45e commit 1ea0a43

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
name: 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: |

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,11 @@
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>

0 commit comments

Comments
 (0)