Commit d918515 1 parent 0ad61b4 commit d918515 Copy full SHA for d918515
File tree 3 files changed +38
-5
lines changed
3 files changed +38
-5
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : Publish package to the Maven Central Repository
2
+
3
+ on :
4
+ release :
5
+ types : [released]
6
+
7
+ jobs :
8
+ release :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set up JDK 8
15
+ uses : actions/setup-java@v3
16
+ with :
17
+ java-version : ' 8'
18
+ distribution : ' temurin'
19
+ cache : maven
20
+ - name : Publish package
21
+ uses : samuelmeuli/action-maven-publish@v1
22
+ with :
23
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
24
+ gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
25
+ nexus_username : ${{ secrets.NEXUS_USERNAME }}
26
+ nexus_password : ${{ secrets.NEXUS_PASSWORD }}
Original file line number Diff line number Diff line change 39
39
</developers >
40
40
41
41
<scm >
42
- <url >https://github.com/szhnet/kcp-netty</url >
43
- <connection >scm:git:git://github.com/szhnet/kcp-netty.git</connection >
42
+ <
url >
[email protected] :szhnet/kcp-netty.git</
url >
43
+ <connection >scm:git:${project.scm.url} </connection >
44
+ <developerConnection >scm:git:${project.scm.url} </developerConnection >
44
45
</scm >
45
46
46
47
<distributionManagement >
47
48
<snapshotRepository >
48
- <id >sonatype-nexus-staging </id >
49
+ <id >ossrh </id >
49
50
<url >https://oss.sonatype.org/content/repositories/snapshots/</url >
50
51
</snapshotRepository >
51
52
<repository >
52
- <id >sonatype-nexus-staging </id >
53
+ <id >ossrh </id >
53
54
<url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
54
55
</repository >
55
56
</distributionManagement >
199
200
<goals >
200
201
<goal >sign</goal >
201
202
</goals >
203
+ <configuration >
204
+ <gpgArguments >
205
+ <arg >--pinentry-mode</arg >
206
+ <arg >loopback</arg >
207
+ </gpgArguments >
208
+ </configuration >
202
209
</execution >
203
210
</executions >
204
211
</plugin >
207
214
<artifactId >nexus-staging-maven-plugin</artifactId >
208
215
<extensions >true</extensions >
209
216
<configuration >
210
- <serverId >sonatype-nexus-staging </serverId >
217
+ <serverId >ossrh </serverId >
211
218
<nexusUrl >https://oss.sonatype.org/</nexusUrl >
212
219
<autoReleaseAfterClose >false</autoReleaseAfterClose >
213
220
</configuration >
You can’t perform that action at this time.
0 commit comments