Skip to content

Commit

Permalink
fix: add neo publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Dec 17, 2023
1 parent 94e40d0 commit 889134d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,22 @@ publishMods {

def fabricOptions = publishOptions {
file = project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "${project.name} Fabric ${mod_version}+mc${minecraft_version}"
displayName = "[FABRIC][${minecraft_version}] ${project.name} ${mod_version}"
modLoaders.add("fabric")
}

def forgeOptions = publishOptions {
file = project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "${project.name} Forge ${mod_version}+mc${minecraft_version}"
displayName = "[FORGE][${minecraft_version}] ${project.name} ${mod_version}"
modLoaders.add("forge")
}

def neoforgeOptions = publishOptions {
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "[NEOFORGE][${minecraft_version}] ${project.name} ${mod_version}"
modLoaders.add("neoforge")
}

def curseForgeOptions = curseforgeOptions {
accessToken = providers.environmentVariable("CURSE_TOKEN")
projectId = "${curseforge_id}"
Expand Down Expand Up @@ -131,6 +137,16 @@ publishMods {
}
}

curseforge("curseforgeNeoforge") {
from(curseForgeOptions, neoforgeOptions)
requires {
slug = "cloth-config"
}
requires {
slug = "architectury-api"
}
}

if (providers.environmentVariable("MODRINTH_TOKEN").getOrNull() != null) {
modrinth("modrinthFabric") {
from(modrinthOptions, fabricOptions)
Expand All @@ -155,5 +171,15 @@ publishMods {
slug = "architectury-api"
}
}

modrinth("modrinthNeoforge") {
from(modrinthOptions, neoforgeOptions)
requires {
slug = "cloth-config"
}
requires {
slug = "architectury-api"
}
}
}
}

0 comments on commit 889134d

Please sign in to comment.