File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff 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"
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 }}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments