Skip to content

Commit 095255a

Browse files
committed
[CI] Update release and packages workflows
1 parent c9b563a commit 095255a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/manual-gh-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- name: Publish package
129129
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository -x test
130130
env:
131-
CM_RELEASE: true
131+
CM_RELEASE: "true"
132132
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
133133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134

.github/workflows/tagged-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ jobs:
238238
run: chmod +x gradlew
239239

240240
- name: Publish package
241-
run: ./gradlew publish -x test
241+
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository -x test
242242
env:
243-
CM_RELEASE: true
243+
CM_RELEASE: "true"
244244
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
245245
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def gitCommitHash = 'git rev-parse --verify --short HEAD'.execute().text.trim()
2121
def isRelease = (System.getenv("CM_RELEASE") ?: "false").equalsIgnoreCase("true")
2222

2323
version = isRelease ? mod_version : "${mod_version}+${gitCommitHash}"
24-
group = "dev.compactmods"
24+
group = isRelease ? "dev.compactmods" : "dev.compactmods.nightly"
2525
archivesBaseName = mod_id
2626

2727
println("Mod ID: ${mod_id}");
@@ -304,7 +304,6 @@ publishing {
304304
publications {
305305
maven(MavenPublication) {
306306
artifactId = mod_id
307-
group = "dev.compactmods"
308307
artifacts {
309308
artifact jar
310309
artifact(apiJar) {
@@ -316,7 +315,6 @@ publishing {
316315

317316
nightlyMaven(MavenPublication) {
318317
artifactId = mod_id
319-
group = "dev.compactmods.nightly"
320318
artifacts {
321319
artifact(jar)
322320
artifact(apiJar) {

0 commit comments

Comments
 (0)