Skip to content

Commit 1e33378

Browse files
committed
Next try...
1 parent 5f7cbc6 commit 1e33378

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
with:
1616
java-version: '17'
1717
distribution: 'temurin'
18-
server-id: ossrh
18+
server-id: central
1919
server-username: MAVEN_USERNAME
2020
server-password: MAVEN_PASSWORD
2121
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2222
gpg-passphrase: GPG_PASSPHRASE
2323

2424
- name: Deploy to Maven Central
25-
run: mvn -f PgBulkInsert/pom.xml -s .github/workflows/maven-settings.xml -B deploy -DskipTests
25+
run: mvn -f PgBulkInsert/pom.xml -B deploy -DskipTests
2626
env:
2727
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2828
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

PgBulkInsert/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@
8282
<distributionManagement>
8383
<repository>
8484
<id>central</id>
85-
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
85+
<url>https://central.sonatype.com</url>
86+
<releases>
87+
<enabled>true</enabled>
88+
</releases>
89+
<snapshots>
90+
<enabled>false</enabled>
91+
</snapshots>
8692
</repository>
8793
</distributionManagement>
8894
<properties>
@@ -116,6 +122,8 @@
116122
<extensions>true</extensions>
117123
<configuration>
118124
<publishingServerId>central</publishingServerId>
125+
<autoPublish>true</autoPublish>
126+
<waitUntil>published</waitUntil>
119127
</configuration>
120128
</plugin>
121129
</plugins>

0 commit comments

Comments
 (0)