Skip to content

Commit ddeb9cc

Browse files
committed
Reverting gpg changes in deploy.yml and pom.xml
1 parent 15319a1 commit ddeb9cc

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,11 @@ jobs:
2929
3030
- name: Import GPG key
3131
run: |
32-
mkdir -p $HOME/.gnupg
33-
echo "${{ secrets.MVN_GPG_PRIVATE_KEY }}" | gpg --batch --import --no-tty
34-
echo "trust-model always" >> $HOME/.gnupg/gpg.conf
35-
gpg --list-secret-keys --keyid-format=long
32+
echo "${{ secrets.MVN_GPG_PRIVATE_KEY }}" | gpg --import --armor --batch --no-tty
3633
3734
- name: Setup Maven settings
3835
run: |
39-
mkdir -p ${HOME}/.m2
36+
rm ${HOME}/.m2/settings.xml
4037
4138
cat << EOF > ${HOME}/.m2/settings.xml
4239
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
@@ -55,8 +52,4 @@ jobs:
5552
- name: Deploy to Sonatype Central
5653
run: |
5754
./mvnw clean deploy --batch-mode -X -Prelease \
58-
-Dgpg.keyname=${{ secrets.MVN_GPG_KEY_ID }} \
59-
-Dgpg.passphrase="" \
60-
-Dgpg.useagent=false
61-
env:
62-
GPG_AGENT_SOCKET: /tmp/gpg-agent.socket
55+
-Dgpg.keyname=${{ secrets.MVN_GPG_KEY_ID }}

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,6 @@
256256
<goals>
257257
<goal>sign</goal>
258258
</goals>
259-
<configuration>
260-
<gpgArguments>
261-
<arg>--pinentry-mode</arg>
262-
<arg>loopback</arg>
263-
</gpgArguments>
264-
</configuration>
265259
</execution>
266260
</executions>
267261
</plugin>

0 commit comments

Comments
 (0)