File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Publish to Sonatype
2
2
3
3
on :
4
4
release :
5
- types : [published, edited ]
5
+ types : [published]
6
6
push :
7
7
branches :
8
8
- develop
26
26
ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }}
27
27
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.GPG_SIGNING_KEY }}
28
28
ORG_GRADLE_PROJECT_signingInMemoryPassword : ${{ secrets.GPG_SIGNING_PASSWORD }}
29
+ - name : Close repository
30
+ if : github.event_name == 'release'
31
+ run : ./gradlew closeAndReleaseRepository
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.SONATYPE_USERNAME }}
35
+ ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }}
36
+ ORG_GRADLE_PROJECT_nexusUsername : ${{ secrets.SONATYPE_USERNAME }}
37
+ ORG_GRADLE_PROJECT_nexusPassword : ${{ secrets.SONATYPE_PASSWORD }}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ plugins {
20
20
id(" io.spring.dependency-management" ) version " 1.0.11.RELEASE"
21
21
id(" com.github.1c-syntax.bslls-dev-tools" ) version " 48c96cde3669e8d63d4b2e195a93ec898430400e"
22
22
id(" ru.vyarus.pom" ) version " 2.2.0"
23
+ id(" io.codearte.nexus-staging" ) version " 0.30.0"
23
24
}
24
25
25
26
repositories {
@@ -326,6 +327,11 @@ publishing {
326
327
}
327
328
}
328
329
330
+ nexusStaging {
331
+ serverUrl = " https://s01.oss.sonatype.org/service/local/"
332
+ stagingProfileId = " 15bd88b4d17915" // ./gradlew getStagingProfile
333
+ }
334
+
329
335
tasks.withType<GenerateModuleMetadata > {
330
336
enabled = false
331
337
}
You can’t perform that action at this time.
0 commit comments