File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change 3
3
release :
4
4
types :
5
5
- published
6
+
6
7
jobs :
7
8
publish :
8
9
if : ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'master' }}
9
10
runs-on : ubuntu-latest
10
11
steps :
11
12
- uses : actions/checkout@v3
13
+
12
14
- name : Set up Apache Maven Central
13
15
uses : actions/setup-java@v4
14
16
with :
17
19
server-id : ' ossrh'
18
20
server-username : OSSRH_USERNAME
19
21
server-password : OSSRH_PASSWORD
20
- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
21
- gpg-passphrase : MAVEN_GPG_PASSPHRASE
22
22
23
23
- name : Get Maven project version
24
24
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
31
31
env :
32
32
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
33
33
OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
34
- MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 97
97
</execution >
98
98
</executions >
99
99
</plugin >
100
- <plugin >
101
- <groupId >org.apache.maven.plugins</groupId >
102
- <artifactId >maven-gpg-plugin</artifactId >
103
- <version >3.0.1</version >
104
- <executions >
105
- <execution >
106
- <id >sign-artifacts</id >
107
- <phase >verify</phase >
108
- <goals >
109
- <goal >sign</goal >
110
- </goals >
111
- </execution >
112
- </executions >
113
- <configuration >
114
- <gpgArguments >
115
- <arg >--pinentry-mode</arg >
116
- <arg >loopback</arg >
117
- </gpgArguments >
118
- </configuration >
119
- </plugin >
120
100
<plugin >
121
101
<groupId >org.sonatype.plugins</groupId >
122
102
<artifactId >nexus-staging-maven-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments