Skip to content

Commit bf68736

Browse files
Update CD.yml
1 parent 7331664 commit bf68736

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/CD.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
architecture: x64
2727
distribution: "adopt"
2828
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
29-
server-username: ${{ secrets.OSSRH_USERNAME }} # env variable for username in deploy
30-
server-password: ${{ secrets.OSSRH_TOKEN }} # env variable for token in deploy
29+
server-username: MAVEN_USERNAME # env variable for username in deploy
30+
server-password: MAVEN_PASSWORD # env variable for token in deploy
3131
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
3232
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
3333

3434
- name: Publish package to Maven Central
3535
run: |
36-
mvn -Darguments=-Dgpg.passphrase=MAVEN_GPG_PASSPHRASE --batch-mode deploy -Dmaven.test.skip=true
36+
mvn --batch-mode deploy -Dmaven.test.skip=true
3737
env:
3838
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3939
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)