Skip to content

Commit ca597ad

Browse files
SK-2262: update release workflows to use maven central portal
1 parent 88cb2d6 commit ca597ad

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/beta-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
profile: maven-central
1212
tag: 'beta'
1313
secrets:
14-
server-username: ${{ secrets.OSSRH_USERNAME }}
15-
server-password: ${{ secrets.OSSRH_PASSWORD }}
14+
server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
15+
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
1616
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
1717
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
1818
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
profile: maven-central
1212
tag: 'public'
1313
secrets:
14-
server-username: ${{ secrets.OSSRH_USERNAME }}
15-
server-password: ${{ secrets.OSSRH_PASSWORD }}
14+
server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
15+
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
1616
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
1717
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
1818
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -259,25 +259,25 @@
259259
<id>maven-central</id>
260260
<distributionManagement>
261261
<repository>
262-
<id>ossrh</id>
263-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
262+
<id>central</id>
263+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
264264
</repository>
265265
<snapshotRepository>
266-
<id>ossrh</id>
267-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
266+
<id>central-snapshots</id>
267+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
268268
</snapshotRepository>
269269
</distributionManagement>
270270
<build>
271271
<plugins>
272272
<plugin>
273-
<groupId>org.sonatype.plugins</groupId>
274-
<artifactId>nexus-staging-maven-plugin</artifactId>
275-
<version>1.6.7</version>
273+
<groupId>org.sonatype.central</groupId>
274+
<artifactId>central-publishing-maven-plugin</artifactId>
275+
<version>0.4.0</version>
276276
<extensions>true</extensions>
277277
<configuration>
278-
<serverId>ossrh</serverId>
279-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
280-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
278+
<publishingServerId>central</publishingServerId>
279+
<tokenAuth>true</tokenAuth>
280+
<autoPublish>true</autoPublish>
281281
</configuration>
282282
</plugin>
283283
</plugins>

0 commit comments

Comments
 (0)