Skip to content

Commit fbc045e

Browse files
Merge pull request #189 from skyflowapi/skyflow-vivek/SK-2207-update-release-workflows
SK-2207 Update release workflows and POM
2 parents a730a25 + 06892d9 commit fbc045e

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
@@ -263,25 +263,25 @@
263263
<id>maven-central</id>
264264
<distributionManagement>
265265
<repository>
266-
<id>ossrh</id>
267-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
266+
<id>central</id>
267+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
268268
</repository>
269269
<snapshotRepository>
270-
<id>ossrh</id>
271-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
270+
<id>central-snapshots</id>
271+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
272272
</snapshotRepository>
273273
</distributionManagement>
274274
<build>
275275
<plugins>
276276
<plugin>
277-
<groupId>org.sonatype.plugins</groupId>
278-
<artifactId>nexus-staging-maven-plugin</artifactId>
279-
<version>1.6.7</version>
277+
<groupId>org.sonatype.central</groupId>
278+
<artifactId>central-publishing-maven-plugin</artifactId>
279+
<version>0.4.0</version>
280280
<extensions>true</extensions>
281281
<configuration>
282-
<serverId>ossrh</serverId>
283-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
284-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
282+
<publishingServerId>central</publishingServerId>
283+
<tokenAuth>true</tokenAuth>
284+
<autoPublish>true</autoPublish>
285285
</configuration>
286286
</plugin>
287287
</plugins>

0 commit comments

Comments
 (0)