Skip to content

Commit 9b83619

Browse files
committed
Fix Sonatype OSSRH authentication configuration
1 parent 85fabd7 commit 9b83619

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/maven-central.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
<servers>
5454
<server>
5555
<id>ossrh</id>
56-
<username>\${env.OSSRH_USERNAME}</username>
57-
<password>\${env.OSSRH_PASSWORD}</password>
56+
<username>${{ secrets.OSSRH_USERNAME_TOKEN }}</username>
57+
<password>${{ secrets.OSSRH_PASSWORD_TOKEN }}</password>
5858
</server>
5959
</servers>
6060
<profiles>
@@ -65,7 +65,7 @@ jobs:
6565
</activation>
6666
<properties>
6767
<gpg.executable>gpg</gpg.executable>
68-
<gpg.passphrase>\${env.GPG_PASSPHRASE}</gpg.passphrase>
68+
<gpg.passphrase>${{ secrets.GPG_PASSPHRASE }}</gpg.passphrase>
6969
</properties>
7070
</profile>
7171
</profiles>
@@ -85,6 +85,8 @@ jobs:
8585
-Dgpg.keyname=${{ secrets.GPG_KEYNAME }} \
8686
-Dgpg.useagent=true \
8787
-Dmaven.test.failure.ignore=false \
88+
-DnexusUrl=https://s01.oss.sonatype.org/ \
89+
-DserverId=ossrh \
8890
-X \
8991
-e \
9092
--debug \

0 commit comments

Comments
 (0)