File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 97
97
java-version : 8
98
98
99
99
- name : Build and release
100
- run : ./gradlew githubRelease publishToSonatype # closeAndReleaseStagingRepository
100
+ run : ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository
101
101
env :
102
102
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
103
103
NEXUS_TOKEN_USER : ${{secrets.NEXUS_TOKEN_USER}}
Original file line number Diff line number Diff line change @@ -34,12 +34,16 @@ tasks.named("githubRelease") {
34
34
githubToken = System . getenv(" GITHUB_TOKEN" )
35
35
newTagRevision = System . getenv(" GITHUB_SHA" )
36
36
releaseTag = project. version
37
+ releaseName = project. version
37
38
}
38
39
39
40
nexusPublishing {
40
41
repositories {
41
42
if (System . getenv(" NEXUS_TOKEN_PWD" )) {
42
- sonatype {
43
+ sonatype { // Publishing to: https://s01.oss.sonatype.org (faster instance)
44
+ nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
45
+ snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
46
+
43
47
username = System . getenv(" NEXUS_TOKEN_USER" )
44
48
password = System . getenv(" NEXUS_TOKEN_PWD" )
45
49
}
You can’t perform that action at this time.
0 commit comments