Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound403 committed Oct 16, 2023
1 parent ecddb55 commit 1d9d0eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
with:
distribution: 'temurin'
java-version: 8
server-id: sonatype-nexus-staging
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.GPG_SECRET }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish to Maven Central
run: mvn --activate-profiles sonatype-nexus-staging clean deploy
run: mvn --activate-profiles ossrh clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<profiles>
<profile>
<id>sonatype-nexus-staging</id>
<id>ossrh</id>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -116,7 +116,7 @@

<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<id>ossrh</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
Expand Down Expand Up @@ -269,7 +269,7 @@
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
Expand Down

0 comments on commit 1d9d0eb

Please sign in to comment.