mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-10-05 05:47:36 +02:00
Also publish dev branch builds to Hangar
This commit is contained in:
parent
2e8d6bcc9f
commit
4fa985f131
@ -84,40 +84,38 @@ modrinth {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMainBranch) { // Don't spam releases until Hangar has per channel notifications
|
hangarPublish {
|
||||||
hangarPublish {
|
publications.register("plugin") {
|
||||||
publications.register("plugin") {
|
version.set(suffixedVersion)
|
||||||
version.set(suffixedVersion)
|
namespace("ViaVersion", "ViaBackwards")
|
||||||
namespace("ViaVersion", "ViaBackwards")
|
channel.set(if (isRelease) "Release" else if (isMainBranch) "Snapshot" else "Alpha")
|
||||||
channel.set(if (isRelease) "Release" else if (isMainBranch) "Snapshot" else "Alpha")
|
changelog.set(changelogContent)
|
||||||
changelog.set(changelogContent)
|
apiKey.set(System.getenv("HANGAR_TOKEN"))
|
||||||
apiKey.set(System.getenv("HANGAR_TOKEN"))
|
platforms {
|
||||||
platforms {
|
register(Platforms.PAPER) {
|
||||||
register(Platforms.PAPER) {
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
platformVersions.set(listOf(property("mcVersionRange") as String))
|
||||||
platformVersions.set(listOf(property("mcVersionRange") as String))
|
dependencies {
|
||||||
dependencies {
|
hangar("ViaVersion", "ViaVersion") {
|
||||||
hangar("ViaVersion", "ViaVersion") {
|
required.set(true)
|
||||||
required.set(true)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
register(Platforms.VELOCITY) {
|
}
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
register(Platforms.VELOCITY) {
|
||||||
platformVersions.set(listOf(property("velocityVersion") as String))
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
dependencies {
|
platformVersions.set(listOf(property("velocityVersion") as String))
|
||||||
hangar("ViaVersion", "ViaVersion") {
|
dependencies {
|
||||||
required.set(true)
|
hangar("ViaVersion", "ViaVersion") {
|
||||||
}
|
required.set(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
register(Platforms.WATERFALL) {
|
}
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
register(Platforms.WATERFALL) {
|
||||||
platformVersions.set(listOf(property("waterfallVersion") as String))
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
dependencies {
|
platformVersions.set(listOf(property("waterfallVersion") as String))
|
||||||
hangar("ViaVersion", "ViaVersion") {
|
dependencies {
|
||||||
required.set(true)
|
hangar("ViaVersion", "ViaVersion") {
|
||||||
}
|
required.set(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user