Skip to content

Commit f400431

Browse files
committed
Temporary fix to allow release publishing
See GeyserMC/Cumulus@4434093 and KyoriPowered/indra#139
1 parent f140b66 commit f400431

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- master
77
- 'feature/**'
8-
tags:
9-
- '*'
108

119
jobs:
1210
build:

buildSrc/src/main/kotlin/mcprotocollib.publish-conventions.gradle.kts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
import java.net.URI
2+
13
plugins {
24
id("mcprotocollib.base-conventions")
35
id("net.kyori.indra.publishing")
46
}
57

68
indra {
7-
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
8-
publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
9+
// publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
10+
// publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
911

1012
configurePublications {
1113
pom {
@@ -16,3 +18,20 @@ indra {
1618
}
1719
}
1820
}
21+
22+
publishing {
23+
repositories {
24+
maven {
25+
name = "geysermc"
26+
url = URI.create(
27+
when {
28+
project.version.toString().endsWith("-SNAPSHOT") ->
29+
"https://repo.opencollab.dev/maven-snapshots"
30+
else ->
31+
"https://repo.opencollab.dev/maven-releases"
32+
}
33+
)
34+
credentials(PasswordCredentials::class.java)
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)