Skip to content

Commit

Permalink
publish updates?
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Aug 6, 2023
1 parent 8b170b0 commit b6369ca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ publishMods {
modLoaders.add("forge")
}

def neoOptions = publishOptions {
file = project.provider { project(":neo").tasks.jar }.flatMap { it.archiveFile }
displayName = "${project.name} NeoForged ${mod_version}+mc${minecraft_version}"
modLoaders.add("neoforge")
}

def curseForgeOptions = curseforgeOptions {
accessToken = providers.environmentVariable("CURSE_TOKEN")
projectId = "${curseforge_id}"
Expand All @@ -128,6 +134,10 @@ publishMods {
from(curseForgeOptions, forgeOptions)
}

curseforge("curseforgeNeo") {
from(curseForgeOptions, neoOptions)
}

if (providers.environmentVariable("MODRINTH_TOKEN").getOrNull() != null) {
modrinth("modrinthFabric") {
from(modrinthOptions, fabricOptions)
Expand All @@ -139,11 +149,16 @@ publishMods {
modrinth("modrinthForge") {
from(modrinthOptions, forgeOptions)
}

modrinth("modrinthNeo") {
from(modrinthOptions, neoOptions)
}
}

github {
file = project.provider { project(":forge").tasks.jar }.flatMap { it.archiveFile }
additionalFiles.from project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile }
additionalFiles.from project.provider { project(":neo").tasks.jar }.flatMap { it.archiveFile }
repository = "${github_repo}"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
commitish = providers.environmentVariable("GITHUB_SHA").orElse("dryRun")
Expand Down

0 comments on commit b6369ca

Please sign in to comment.