Skip to content

Commit d5732b8

Browse files
committed
fix: provide server-id for new central release
...as opposed to ossrh
1 parent 3b81e34 commit d5732b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Release Maven package
3232
uses: samuelmeuli/action-maven-publish@v1
3333
with:
34+
server_id: central
3435
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3536
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
3637
nexus_username: ${{ secrets.NEXUS_USERNAME }}

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@
217217
<id>ossrh</id>
218218
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
219219
</repository>
220+
<repository>
221+
<id>central</id>
222+
<url>https://central.sonatype.com</url>
223+
</repository>
220224
</distributionManagement>
221225

222226
<scm>

0 commit comments

Comments
 (0)