File tree Expand file tree Collapse file tree 2 files changed +11
-34
lines changed Expand file tree Collapse file tree 2 files changed +11
-34
lines changed Original file line number Diff line number Diff line change @@ -38,45 +38,12 @@ jobs:
38
38
default-key ${{ secrets.GPG_KEYNAME }}
39
39
use-agent
40
40
pinentry-mode loopback
41
- trust-model always
42
- debug-level guru
43
- verbose
44
41
EOF
45
42
46
- cat > ~/.gnupg/gpg-agent.conf << EOF
47
- allow-loopback-pinentry
48
- default-cache-ttl 600
49
- max-cache-ttl 7200
50
- debug-level guru
51
- verbose
52
- EOF
53
-
54
- # Set trust level directly
55
- echo "Setting trust level..."
56
- gpg --batch --yes --trust-model always --import-ownertrust < <(echo "${{ secrets.GPG_KEYNAME }}:6:")
57
-
58
- # Restart GPG agent
59
- echo "Restarting GPG agent..."
60
- gpgconf --kill gpg-agent
61
- gpg-agent --daemon
62
-
63
43
# Debug information
64
- echo "=== GPG Configuration ==="
65
- cat ~/.gnupg/gpg.conf
66
- echo "=== GPG Agent Configuration ==="
67
- cat ~/.gnupg/gpg-agent.conf
68
44
echo "=== GPG Keys ==="
69
45
gpg --list-secret-keys --keyid-format LONG
70
46
gpg --list-keys --keyid-format LONG
71
- echo "=== GPG Version ==="
72
- gpg --version
73
- echo "=== GPG Directories ==="
74
- gpgconf --list-dirs
75
- echo "=== GPG Trust ==="
76
- gpg --list-ownertrust
77
- echo "=== GPG Agent Status ==="
78
- gpgconf --list-dirs agent-socket
79
- gpg-agent --version
80
47
81
48
- name : Build and Publish
82
49
env :
Original file line number Diff line number Diff line change 179
179
<plugin >
180
180
<groupId >org.apache.maven.plugins</groupId >
181
181
<artifactId >maven-gpg-plugin</artifactId >
182
- <version >3.1.0 </version >
182
+ <version >3.0.1 </version >
183
183
<executions >
184
184
<execution >
185
185
<id >sign-artifacts</id >
186
186
<phase >verify</phase >
187
187
<goals >
188
188
<goal >sign</goal >
189
189
</goals >
190
+ <configuration >
191
+ <keyname >${gpg.keyname} </keyname >
192
+ <passphrase >${gpg.passphrase} </passphrase >
193
+ <gpgArguments >
194
+ <arg >--batch</arg >
195
+ <arg >--yes</arg >
196
+ <arg >--pinentry-mode</arg >
197
+ <arg >loopback</arg >
198
+ </gpgArguments >
199
+ </configuration >
190
200
</execution >
191
201
</executions >
192
202
</plugin >
You can’t perform that action at this time.
0 commit comments