Skip to content

Commit 29db505

Browse files
Update publish-central.yml
1 parent 5522f7f commit 29db505

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish package to the Maven Central Repository
22

33
on:
4-
release:
5-
types: [ published ]
4+
pull_request:
5+
branches: [ "master" ]
66

77
jobs:
88
release:
@@ -26,7 +26,7 @@ jobs:
2626
with: # running setup-java again overwrites the settings.xml
2727
java-version: 17
2828
distribution: 'adopt'
29-
server-id: ossrh
29+
server-id: central
3030
server-username: OSSRH_USERNAME
3131
server-password: OSSRH_PASSWORD
3232
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

0 commit comments

Comments
 (0)