Add automatic publishing to curseforge

This commit is contained in:
Lukas Rieger (Blue) 2022-11-11 13:13:54 +01:00
parent 51cdcb534b
commit f1659ff258
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
13 changed files with 377 additions and 0 deletions

View File

@ -28,4 +28,5 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
env: env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
run: ./gradlew publish run: ./gradlew publish

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,37 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("Java 16")
addGameVersion("Java 15")
addGameVersion("Java 14")
addGameVersion("Java 13")
addGameVersion("Java 12")
addGameVersion("Java 11")
addGameVersion("1.15.2")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,37 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("Java 16")
addGameVersion("Java 15")
addGameVersion("Java 14")
addGameVersion("Java 13")
addGameVersion("Java 12")
addGameVersion("Java 11")
addGameVersion("1.16.1")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,40 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("Java 16")
addGameVersion("Java 15")
addGameVersion("Java 14")
addGameVersion("Java 13")
addGameVersion("Java 12")
addGameVersion("Java 11")
addGameVersion("1.16.2")
addGameVersion("1.16.3")
addGameVersion("1.16.4")
addGameVersion("1.16.5")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,33 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("Java 16")
addGameVersion("1.17")
addGameVersion("1.17.1")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,33 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("1.18")
addGameVersion("1.18.1")
addGameVersion("1.18.2")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -1,3 +1,5 @@
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.Options
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
@ -8,6 +10,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2" id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("fabric-loom") version "0.12-SNAPSHOT" id ("fabric-loom") version "0.12-SNAPSHOT"
id ("com.modrinth.minotaur") version "2.+" id ("com.modrinth.minotaur") version "2.+"
id ("com.matthewprenger.cursegradle") version "1.4.0"
} }
group = "de.bluecolored.bluemap.fabric" group = "de.bluecolored.bluemap.fabric"
@ -142,6 +145,33 @@ modrinth {
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion("Fabric")
addGameVersion("Java 18")
addGameVersion("Java 17")
addGameVersion("1.19")
addGameVersion("1.19.1")
addGameVersion("1.19.2")
mainArtifact(tasks.findByName("remappedShadowJar"))
})
options(closureOf<Options> {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
})
}
tasks.register("publish") { tasks.register("publish") {
dependsOn("modrinth") dependsOn("modrinth")
dependsOn("curseforge")
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -176,6 +177,37 @@ modrinth {
gameVersions = ["1.14.4"] gameVersions = ["1.14.4"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "Java 16"
addGameVersion "Java 15"
addGameVersion "Java 14"
addGameVersion "Java 13"
addGameVersion "Java 12"
addGameVersion "Java 11"
addGameVersion "1.14.4"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -176,6 +177,37 @@ modrinth {
gameVersions = ["1.15.2"] gameVersions = ["1.15.2"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "Java 16"
addGameVersion "Java 15"
addGameVersion "Java 14"
addGameVersion "Java 13"
addGameVersion "Java 12"
addGameVersion "Java 11"
addGameVersion "1.15.2"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -176,6 +177,40 @@ modrinth {
gameVersions = ["1.16.2", "1.16.3", "1.16.4", "1.16.5"] gameVersions = ["1.16.2", "1.16.3", "1.16.4", "1.16.5"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "Java 16"
addGameVersion "Java 15"
addGameVersion "Java 14"
addGameVersion "Java 13"
addGameVersion "Java 12"
addGameVersion "Java 11"
addGameVersion "1.16.2"
addGameVersion "1.16.3"
addGameVersion "1.16.4"
addGameVersion "1.16.5"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -176,6 +177,32 @@ modrinth {
gameVersions = ["1.17.1"] gameVersions = ["1.17.1"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "Java 16"
addGameVersion "1.17.1"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -176,6 +177,32 @@ modrinth {
gameVersions = ["1.18.1", "1.18.2"] gameVersions = ["1.18.1", "1.18.2"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "1.18.1"
addGameVersion "1.18.2"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }

View File

@ -16,6 +16,7 @@ plugins {
id "com.github.node-gradle.node" version "3.0.1" id "com.github.node-gradle.node" version "3.0.1"
id "com.github.johnrengelman.shadow" version "7.1.2" id "com.github.johnrengelman.shadow" version "7.1.2"
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
apply plugin: "net.minecraftforge.gradle" apply plugin: "net.minecraftforge.gradle"
@ -177,6 +178,33 @@ modrinth {
gameVersions = ["1.19", "1.19.1", "1.19.2"] gameVersions = ["1.19", "1.19.1", "1.19.2"]
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
releaseType = "release"
addGameVersion "Forge"
addGameVersion "Java 18"
addGameVersion "Java 17"
addGameVersion "1.19"
addGameVersion "1.19.1"
addGameVersion "1.19.2"
mainArtifact shadowJar
}
options {
javaVersionAutoDetect = false
javaIntegration = false
forgeGradleIntegration = false
}
}
task publish { task publish {
dependsOn(tasks.findByName("modrinth")) dependsOn(tasks.findByName("modrinth"))
dependsOn(tasks.findByName("curseforge"))
} }