Skip to content

Commit bf7dfbb

Browse files
committed
build: update gpg plugin and its configuration
1 parent 28457eb commit bf7dfbb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
uses: actions/setup-java@v3
1818
with:
1919
java-version: '11'
20+
cache: 'maven'
2021
distribution: 'adopt'
21-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
22-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
22+
2323

2424
- name: Configure Maven settings
2525
run: |
@@ -30,8 +30,11 @@ jobs:
3030
run: mvn --batch-mode --update-snapshots clean test spotless:check ossindex:audit
3131

3232
- name: Deploy to Maven Central
33+
env:
34+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY }}
35+
MAVEN_GPG_KEY: ${{ secrets.GPG_PASSPHRASE }}
3336
if: success()
34-
run: mvn deploy -P release
37+
run: MAVEN_GPG_PASSPHRASE=$MAVEN_GPG_PASSPHRASE MAVEN_GPG_KEY=${MAVEN_GPG_KEY} mvn deploy -DskipTests
3538

3639
- name: Create GitHub Release
3740
if: success()

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
<plugin>
175175
<groupId>org.apache.maven.plugins</groupId>
176176
<artifactId>maven-gpg-plugin</artifactId>
177-
<version>3.0.1</version>
177+
<version>3.2.6</version>
178178
<executions>
179179
<execution>
180180
<id>sign-artifacts</id>
@@ -183,10 +183,7 @@
183183
<goal>sign</goal>
184184
</goals>
185185
<configuration>
186-
<gpgArguments>
187-
<arg>--pinentry-mode</arg>
188-
<arg>loopback</arg>
189-
</gpgArguments>
186+
<signer>bc</signer>
190187
</configuration>
191188
</execution>
192189
</executions>

0 commit comments

Comments
 (0)