Skip to content

Commit b816a77

Browse files
Update CD.yml
1 parent b77686e commit b816a77

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/CD.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +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: OSSRH_USERNAME # env variable for username in deploy
30-
server-password: OSSRH_TOKEN # env variable for token in deploy
29+
server-username: ${{ secrets.OSSRH_USERNAME }} # env variable for username in deploy
30+
server-password: ${{ secrets.OSSRH_TOKEN }} # env variable for token in deploy
3131
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
32-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
32+
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }} # env variable for GPG private key passphrase
3333

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

0 commit comments

Comments
 (0)