Skip to content

Commit 503570d

Browse files
authored
🐛 fix deploy to central (#248)
1 parent bcfc214 commit 503570d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/_publish-code.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ jobs:
2424
with:
2525
java-version: "8"
2626
distribution: "adopt"
27+
server-id: central
28+
server-username: MAVEN_USERNAME
29+
server-password: MAVEN_PASSWORD
2730

2831
- id: publish-to-central
2932
name: Publish to Central Repository
33+
env:
34+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
35+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3036
run: |
3137
mvn --update-snapshots \
3238
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \

0 commit comments

Comments
 (0)