Skip to content

Commit 655b38c

Browse files
authored
ossrh fix (#418)
1 parent 1241543 commit 655b38c

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16+
env:
17+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
18+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
19+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
20+
1621
steps:
1722
- uses: actions/checkout@v3
1823
- name: Cache Maven packages
@@ -33,8 +38,4 @@ jobs:
3338
gpg-private-key: ${{ secrets.GPG_KEY }}
3439
gpg-passphrase: GPG_KEY_PASSPHRASE
3540
- name: Deploy on Maven Central
36-
run: ./mvnw -B --file pom.xml deploy -Prelease --settings settings.xml
37-
env:
38-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
39-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
40-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
41+
run: ./mvnw -B deploy -Prelease -DskipTests

pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
<properties>
3030

31-
<!-- Dependencies -->
32-
33-
<publish.server.id>ossrh</publish.server.id>
34-
<release.goals>install org.sonatype.central:central-publishing-maven-plugin:0.7.0:publish</release.goals>
3531
<json.schema.validator.version>2.2.14</json.schema.validator.version>
3632
<jackson.core.version>2.15.2</jackson.core.version>
3733
<jackson.databind.version>2.15.2</jackson.databind.version>
@@ -88,7 +84,7 @@
8884
<version>0.7.0</version>
8985
<extensions>true</extensions>
9086
<configuration>
91-
<publishingServerId>${publish.server.id}</publishingServerId>
87+
<publishingServerId>ossrh</publishingServerId>
9288
<autoPublish>true</autoPublish>
9389
</configuration>
9490
</plugin>
@@ -118,7 +114,7 @@
118114
<configuration>
119115
<autoVersionSubmodules>true</autoVersionSubmodules>
120116
<releaseProfiles>release</releaseProfiles>
121-
<goals>${release.goals}</goals>
117+
<goals>deploy</goals>
122118
</configuration>
123119
</plugin>
124120
<plugin>

settings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)