File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 19
19
server-id : ' ossrh'
20
20
server-username : OSSRH_USERNAME
21
21
server-password : OSSRH_PASSWORD
22
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
23
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
22
24
23
25
- name : Get Maven project version
24
26
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
31
33
env :
32
34
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
33
35
OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
36
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 71
71
</execution >
72
72
</executions >
73
73
</plugin >
74
+ <plugin >
75
+ <groupId >org.apache.maven.plugins</groupId >
76
+ <artifactId >maven-gpg-plugin</artifactId >
77
+ <version >3.0.1</version >
78
+ <executions >
79
+ <execution >
80
+ <id >sign-artifacts</id >
81
+ <phase >verify</phase >
82
+ <goals >
83
+ <goal >sign</goal >
84
+ </goals >
85
+ </execution >
86
+ </executions >
87
+ <configuration >
88
+ <gpgArguments >
89
+ <arg >--pinentry-mode</arg >
90
+ <arg >loopback</arg >
91
+ </gpgArguments >
92
+ </configuration >
93
+ </plugin >
74
94
<plugin >
75
95
<groupId >org.apache.maven.plugins</groupId >
76
96
<artifactId >maven-source-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments