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 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 }}
Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments