Skip to content

Commit 63e3f26

Browse files
committed
Deploy to maven central
1 parent 67e95f7 commit 63e3f26

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/pre-release-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
server-id: ossrh
2424
server-username: MAVEN_USERNAME
2525
server-password: MAVEN_PASSWORD
26+
gpg-private-key: MAVEN_GPG_PRIVATE_KEY
2627
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2728
- name: Deploy pre-release version to the Maven Central Repository
2829
run: |
@@ -34,6 +35,7 @@ jobs:
3435
env:
3536
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3637
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
38+
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3739
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
3840
- name: Set up Java for publishing to GitHub Packages
3941
uses: actions/setup-java@v1

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@
427427
</profile>
428428
<profile>
429429
<id>deploy2Maven</id>
430-
<properties>
431-
<gpg.passphrase>${env.MAVEN_GPG_PASSPHRASE}</gpg.passphrase>
432-
</properties>
430+
<!-- <properties>-->
431+
<!-- <gpg.passphrase>${env.MAVEN_GPG_PASSPHRASE}</gpg.passphrase>-->
432+
<!-- </properties>-->
433433
<distributionManagement>
434434
<repository>
435435
<id>ossrh</id>

0 commit comments

Comments
 (0)