Skip to content

Commit fbca595

Browse files
committed
debug: Debug CI release
1 parent f270b51 commit fbca595

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,25 @@ jobs:
3939
4040
- name: Import GPG key manually
4141
run: |
42+
mkdir -p /home/runner/.gnupg
43+
chmod 700 /home/runner/.gnupg
4244
echo "${{ secrets.PGP_SECRET }}" | base64 -d | gpg --import --batch --no-tty
45+
echo "allow-loopback-pinentry" >> /home/runner/.gnupg/gpg-agent.conf
46+
gpgconf --kill gpg-agent || true
47+
sleep 1
4348
gpg --list-secret-keys
49+
echo "GPG version:"
50+
gpg --version | head -1
4451
env:
4552
GNUPGHOME: /home/runner/.gnupg
4653

4754
- name: Publish to Apache Maven Central
4855
run: |
49-
export GPG_TTY=$(tty)
5056
mvn clean -Darguments=-DskipTests release:prepare release:perform -DreleaseVersion=${{github.event.inputs.version}} -Prelease
5157
env:
5258
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
5359
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
5460
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
5561
GNUPGHOME: /home/runner/.gnupg
62+
GPG_TTY: /dev/null
5663
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@
141141
</goals>
142142
</execution>
143143
</executions>
144+
<configuration>
145+
<gpgArguments>
146+
<arg>--pinentry-mode</arg>
147+
<arg>loopback</arg>
148+
<arg>--batch</arg>
149+
<arg>--no-tty</arg>
150+
</gpgArguments>
151+
</configuration>
144152
</plugin>
145153

146154
<plugin>

0 commit comments

Comments
 (0)