Skip to content

Commit f764775

Browse files
committed
chore: fix maven variables
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 97b346f commit f764775

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,23 @@ jobs:
9393
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
9494
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
9595

96+
- name: Verify GPG key import
97+
run: |
98+
gpg --version
99+
gpg --list-secret-keys --keyid-format LONG
100+
echo "GPG_KEYNAME from secret: ${{ vars.GPG_KEYNAME }}"
101+
96102
- name: Set Maven version
97103
run: mvn versions:set -DnewVersion=${{ github.ref_name }} -DgenerateBackupPoms=false
98104

99105
- name: Deploy to Maven Central
100106
env:
101107
# Required variables and secrets for publishing to Maven Central
102108
# GNU Privacy Guard variables
103-
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
109+
GPG_KEYNAME: ${{ vars.GPG_KEYNAME }}
104110
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
105111
# Central portal username and password
106-
CP_USERNAME: ${{ secrets.CP_USERNAME }}
112+
CP_USERNAME: ${{ vars.CP_USERNAME }}
107113
CP_PASSWORD: ${{ secrets.CP_PASSWORD }}
108114
run: |
109115
mvn -e -B -ntp deploy --settings build/.github.settings.xml -DskipTests -P central

0 commit comments

Comments
 (0)