File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 9494 run : chmod +x gradlew
9595
9696 - name : Publish gradle nightly jar
97- run : ./gradlew publishNightlyMavenPublicationToGitHubPackagesRepository
97+ run : ./gradlew publishNightlyPublicationToGitHubPackagesRepository
9898 env :
9999 CM_RELEASE : false
100100 GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ jobs:
118118 run : chmod +x gradlew
119119
120120 - name : Publish JAR with Gradle
121- run : ./gradlew publish -x test
121+ run : ./gradlew publishReleasePublicationToGitHubPackagesRepository -x test
122122 env :
123123 CM_RELEASE : true
124124 GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ jobs:
120120 run : chmod +x gradlew
121121
122122 - name : Publish package
123- run : ./gradlew publishMavenPublicationToGitHubPackagesRepository -x test
123+ run : ./gradlew publishReleasePublicationToGitHubPackagesRepository -x test
124124 env :
125125 CM_RELEASE : true
126126 GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ jar {
209209 " Specification-Vendor" : " " ,
210210 " Specification-Version" : " 1" , // We are version 1 of ourselves
211211 " Implementation-Title" : project. name,
212- " Implementation-Version" : version ,
212+ " Implementation-Version" : archiveVersion ,
213213 " Implementation-Vendor" : " " ,
214214 " Implementation-Timestamp" : new Date (). format(" yyyy-MM-dd'T'HH:mm:ssZ" )
215215 ])
@@ -229,10 +229,10 @@ artifacts {
229229
230230publishing {
231231 publications {
232- maven (MavenPublication ) {
232+ release (MavenPublication ) {
233233 artifactId = mod_id
234- group = " dev.compactmods"
235-
234+ groupId = " dev.compactmods"
235+
236236 artifacts {
237237 artifact jar
238238 artifact(apiJar) {
@@ -241,9 +241,10 @@ publishing {
241241 }
242242 }
243243
244- nightlyMaven (MavenPublication ) {
244+ nightly (MavenPublication ) {
245245 artifactId = mod_id
246- group = " dev.compactmods.nightly"
246+ groupId = " dev.compactmods.nightly"
247+ version = " ${ mod_version} +nightly-${ gitCommitHash} "
247248
248249 artifacts {
249250 artifact(jar)
You can’t perform that action at this time.
0 commit comments