Skip to content

Commit 2d9864d

Browse files
committed
update publishing to Maven Central
1 parent bf3edca commit 2d9864d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/PublishToMavenCentral.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@ jobs:
2020
server-id: ossrh
2121
server-username: MAVEN_USERNAME
2222
server-password: MAVEN_PASSWORD
23-
- name: Publish package
23+
- name: Stage package
2424
run: xvfb-run --auto-servernum mvn -B -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy -P release
2525
env:
2626
DISPLAY: ":99.0"
2727
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2828
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
29+
- name: Publish Package
30+
uses: fjogeleit/http-request-action@v2
31+
with:
32+
url: 'https://central.sonatype.com/publishing/namespaces/manual/upload/defaultRepository/org.openlcb'
33+
method: 'POST'
34+
username: ${{ secrets.OSSRH_USERNAME }}
35+
password: ${{ secrets.OSSRH_TOKEN }}
36+

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
<distributionManagement>
3232
<snapshotRepository>
3333
<id>ossrh</id>
34-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
34+
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
3535
</snapshotRepository>
3636
<repository>
3737
<id>ossrh</id>
38-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
38+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
3939
</repository>
4040
</distributionManagement>
4141
<organization>

0 commit comments

Comments
 (0)