Skip to content

Commit bdc0d00

Browse files
zimegClaude
andcommitted
ci: configure gpg in the GNUPGHOME that setup-java v6 creates
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent b0eefe7 commit bdc0d00

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
java-version: "17"
2424
distribution: "zulu"
2525
server-id: central
26-
server-username: MAVEN_USERNAME
27-
server-password: MAVEN_PASSWORD
26+
server-username-env-var: MAVEN_USERNAME
27+
server-password-env-var: MAVEN_PASSWORD
2828
gpg-private-key: ${{ secrets.GPG_KEY }}
29-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
29+
gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE
3030

3131
- name: Add snapshot server credentials
3232
run: |
@@ -39,9 +39,9 @@ jobs:
3939
4040
- name: Configure GPG
4141
run: |
42-
echo "use-agent" >> ~/.gnupg/gpg.conf
43-
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
44-
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
42+
echo "use-agent" >> "${GNUPGHOME}/gpg.conf"
43+
echo "pinentry-mode loopback" >> "${GNUPGHOME}/gpg.conf"
44+
echo "allow-loopback-pinentry" >> "${GNUPGHOME}/gpg-agent.conf"
4545
echo RELOADAGENT | gpg-connect-agent
4646
4747
- name: Publish to Maven Central

0 commit comments

Comments
 (0)