File tree Expand file tree Collapse file tree 2 files changed +30
-21
lines changed Expand file tree Collapse file tree 2 files changed +30
-21
lines changed Original file line number Diff line number Diff line change 22
22
env :
23
23
GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
24
24
- 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
26
26
env :
27
27
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
28
28
Original file line number Diff line number Diff line change 218
218
</execution >
219
219
</executions >
220
220
</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 >
241
221
<plugin >
242
222
<groupId >org.sonatype.plugins</groupId >
243
223
<artifactId >nexus-staging-maven-plugin</artifactId >
265
245
</plugin >
266
246
</plugins >
267
247
</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 >
268
277
</project >
You can’t perform that action at this time.
0 commit comments