File tree Expand file tree Collapse file tree 3 files changed +2
-31
lines changed Expand file tree Collapse file tree 3 files changed +2
-31
lines changed Original file line number Diff line number Diff line change 1717 - name : Publish package
1818 uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
1919 with :
20- arguments : -Pversion=${NEW_VERSION} build publish
20+ arguments : -Pversion=${NEW_VERSION} publishToSonatype closeAndReleaseSonatypeStagingRepository
2121 env :
2222 ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_PASSWORD }}
2323 ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
Original file line number Diff line number Diff line change @@ -15,31 +15,3 @@ nexusPublishing {
1515 }
1616 }
1717}
18-
19- // subprojects {
20- // // plugins {
21- // // `maven-publish`
22- // // signing
23- // // id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
24- // // }
25- //
26- // // publishing {
27- // // publications {
28- // // create<MavenPublication>("maven") {
29- // // from(components["java"])
30- // // groupId = "io.github.petitcl"
31- // // artifactId = project.name
32- // // version = System.getenv("NEW_VERSION")
33- // // }
34- // // }
35- // // }
36- // }
37-
38- //
39- // signing {
40- // val signingKey: String? by project
41- // val signingPassword: String? by project
42- // useInMemoryPgpKeys(signingKey, signingPassword)
43- //
44- // sign(publishing.publications["maven"])
45- // }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ plugins {
44 id(" signing" )
55}
66
7-
87group = " io.github.petitcl"
98version = if (System .getenv(" NEW_VERSION" ) != null ) { System .getenv(" NEW_VERSION" ) } else { " 0.0.1-SNAPSHOT" }
109
@@ -48,5 +47,5 @@ signing {
4847 val signingKey: String? by project
4948 val signingPassword: String? by project
5049 useInMemoryPgpKeys(signingKey, signingPassword)
51- sign(publishing.publications[" maven " ])
50+ sign(publishing.publications[" mavenJava " ])
5251}
You can’t perform that action at this time.
0 commit comments