Skip to content

Commit f4f6690

Browse files
committed
fix(ci): ossrh publish action
1 parent 445f6ab commit f4f6690

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
server-id: central
1616
server-username: MAVEN_USERNAME
1717
server-password: MAVEN_PASSWORD
18-
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
18+
- id: install-secret-key
19+
name: Install gpg secret key
20+
run: |
21+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
22+
gpg --list-secret-keys --keyid-format LONG
1923
- name: Publish package
2024
run: mvn --batch-mode clean deploy
2125
env:

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@
201201
<distributionManagement>
202202
<snapshotRepository>
203203
<id>ossrh</id>
204-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
204+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
205205
</snapshotRepository>
206206
<repository>
207207
<id>ossrh</id>
208-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
208+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
209209
</repository>
210210
</distributionManagement>
211211
</project>

0 commit comments

Comments
 (0)