Skip to content

Commit

Permalink
Add CurseForge publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Apr 27, 2024
1 parent 69a2556 commit 63ec766
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,6 @@ sourcesJar {
from delombok
}

tasks.register('printVersionName') {
doLast {
println "${project.mod_version} (${project.minecraft_version})"
}
}

tasks.register('printVersion') {
doLast {
println version
}
}

// configure the maven publication
publishing {
publications {
Expand Down Expand Up @@ -219,6 +207,14 @@ publishMods {
requires("fabric-api")
embeds("dark-matter")
}
curseforge {
projectId = "1009687"
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
minecraftVersions.add("${project.minecraft_version}")

requires("fabric-api")
embeds("dark-matter")
}
github {
repository = "constellation-mc/commander"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
Expand Down

0 comments on commit 63ec766

Please sign in to comment.