Skip to content

Commit 124ae78

Browse files
fix: Fix maven central connection (#190)
1 parent 6868ffe commit 124ae78

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release-please.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- name: Deploy with Maven
4545
run: mvn --batch-mode clean deploy
4646
env:
47-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
48-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
47+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME_2 }}
48+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_2 }}
4949
GPG_PASS: ${{ secrets.SIGN_KEY_PASS }} # Password chosen when creating the GPG key
5050

5151
release-deploy:
@@ -72,6 +72,6 @@ jobs:
7272
- name: Deploy with Maven
7373
run: mvn --batch-mode clean deploy
7474
env:
75-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
76-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
75+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME_2 }}
76+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_2 }}
7777
GPG_PASS: ${{ secrets.SIGN_KEY_PASS }} # Password chosen when creating the GPG key

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<distributionManagement>
1111
<snapshotRepository>
1212
<id>ossrh</id>
13-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
13+
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
1414
</snapshotRepository>
1515
<repository>
1616
<id>ossrh</id>
17-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
17+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
1818
</repository>
1919
</distributionManagement>
2020

0 commit comments

Comments
 (0)