Skip to content

Commit 0707db9

Browse files
committed
chore: update publication flow
1 parent 6b1efc8 commit 0707db9

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: Publish to Apache Maven Central
2727
run: mvn deploy -Pci-cd
2828
env:
29-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
NEXUS_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
NEXUS_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
32+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3233
#MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@
3232
<tag>v2.0.0-beta1</tag>
3333
</scm>
3434

35-
<distributionManagement>
36-
<snapshotRepository>
37-
<id>ossrh</id>
38-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
39-
</snapshotRepository>
40-
<repository>
41-
<id>ossrh</id>
42-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
43-
</repository>
44-
</distributionManagement>
45-
4635

4736
<developers>
4837
<developer>
@@ -98,6 +87,15 @@
9887
<tagNameFormat>v@{project.version}</tagNameFormat>
9988
</configuration>
10089
</plugin>
90+
<plugin>
91+
<groupId>org.sonatype.central</groupId>
92+
<artifactId>central-publishing-maven-plugin</artifactId>
93+
<version>0.8.0</version>
94+
<extensions>true</extensions>
95+
<configuration>
96+
<publishingServerId>central</publishingServerId>
97+
</configuration>
98+
</plugin>
10199
</plugins>
102100
</build>
103101

0 commit comments

Comments
 (0)