Skip to content

Commit 02f08ed

Browse files
committed
Merge branch 'develop' into main
2 parents 157e033 + f7ef0cb commit 02f08ed

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed

.github/workflows/build_and_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
2424
- name: Build with Maven
25-
run: mvn -B -Dgpg.passphrase=${GPG_PASSPHRASE} -Dtest=org.purejava.KeepassProxyAccessTest install --file pom.xml
25+
run: mvn -B -Psign -Dgpg.passphrase=${GPG_PASSPHRASE} -Dtest=org.purejava.KeepassProxyAccessTest install --file pom.xml
2626
env:
2727
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2828

pom.xml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -218,26 +218,6 @@
218218
</execution>
219219
</executions>
220220
</plugin>
221-
<plugin>
222-
<groupId>org.apache.maven.plugins</groupId>
223-
<artifactId>maven-gpg-plugin</artifactId>
224-
<version>1.6</version>
225-
<executions>
226-
<execution>
227-
<id>sign-artifacts</id>
228-
<phase>verify</phase>
229-
<goals>
230-
<goal>sign</goal>
231-
</goals>
232-
<configuration>
233-
<gpgArguments>
234-
<arg>--pinentry-mode</arg>
235-
<arg>loopback</arg>
236-
</gpgArguments>
237-
</configuration>
238-
</execution>
239-
</executions>
240-
</plugin>
241221
<plugin>
242222
<groupId>org.sonatype.plugins</groupId>
243223
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -265,4 +245,33 @@
265245
</plugin>
266246
</plugins>
267247
</build>
248+
<profiles>
249+
<profile>
250+
<id>sign</id>
251+
<build>
252+
<plugins>
253+
<plugin>
254+
<groupId>org.apache.maven.plugins</groupId>
255+
<artifactId>maven-gpg-plugin</artifactId>
256+
<version>1.6</version>
257+
<executions>
258+
<execution>
259+
<id>sign-artifacts</id>
260+
<phase>verify</phase>
261+
<goals>
262+
<goal>sign</goal>
263+
</goals>
264+
<configuration>
265+
<gpgArguments>
266+
<arg>--pinentry-mode</arg>
267+
<arg>loopback</arg>
268+
</gpgArguments>
269+
</configuration>
270+
</execution>
271+
</executions>
272+
</plugin>
273+
</plugins>
274+
</build>
275+
</profile>
276+
</profiles>
268277
</project>

0 commit comments

Comments
 (0)