Skip to content

Commit a3374c3

Browse files
Add GPG passphrase server entry to release settings.xml
The maven-gpg-plugin reads the passphrase from a settings.xml server entry with id gpg.passphrase. Our custom settings.xml was missing this, causing GPG to fail with "no terminal at all requested - can't get input". The original setup-java action generated this entry automatically, but we overwrote the settings.xml.
1 parent 239bfea commit a3374c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
<username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
7575
<password>${{ secrets.MAVEN_CENTRAL_PASSWORD }}</password>
7676
</server>
77+
<server>
78+
<id>gpg.passphrase</id>
79+
<passphrase>\${env.GPG_PASSPHRASE}</passphrase>
80+
</server>
7781
</servers>
7882
</settings>
7983
EOF

0 commit comments

Comments
 (0)