Skip to content

Commit

Permalink
Switch how staging is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Nov 7, 2023
1 parent c31074e commit e36373c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions version.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.modrinth.minotaur.ModrinthExtension
import com.replaymod.gradle.preprocess.PreprocessTask
import groovy.lang.GroovyObjectSupport
import net.raphimc.javadowngrader.gradle.task.DowngradeSourceSetTask
Expand Down Expand Up @@ -305,14 +304,8 @@ preprocess {

modrinth {
val isStaging = true
token.set(
project.properties["modrinth.token${if (isStaging) ".staging" else ""}"] as String?
?: System.getenv("MODRINTH_TOKEN${if (isStaging) "_STAGING" else ""}")
)
if (isStaging) {
apiUrl.set(ModrinthExtension.STAGING_API_URL)
}
projectId.set("world-host")
token.set(project.properties["modrinth.token"] as String? ?: System.getenv("MODRINTH_TOKEN"))
projectId.set(if (isStaging) "world-host-staging" else "world-host")
versionNumber.set(version.toString())
val loadersText = when {
isFabric -> "Fabric/Quilt"
Expand All @@ -335,7 +328,7 @@ modrinth {
}
dependencies {
if (isFabric) {
optional.project(if (isStaging) "fred-3" else "modmenu")
optional.project("modmenu")
}
}
rootProject.file("changelogs/$modVersion.md").let {
Expand Down

0 comments on commit e36373c

Please sign in to comment.