forked from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 26
Automated Modrinth publication
Grayray edited this page Aug 12, 2023
·
1 revision
The minotaur gradle plugin is a tool for deploying build artifacts to Modrinth.
For more info see https://github.com/modrinth/minotaur#readme
// build.gradle
plugins {
id "com.modrinth.minotaur" version "2.+"
}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "my-mod"
versionNumber = "${project.mod_version}"
versionName = "my-mod v${project.mod_version}"
versionType = "release"
uploadFile = remapJar
gameVersions = ["1.8.9"]
loaders = ["fabric"]
dependencies {
required.project "legacy-fabric-api"
}
}
To publish to Modrinth run:
./gradlew build modrinth