Skip to content

Commit

Permalink
modrinth
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfudge committed Jun 19, 2021
1 parent d2331c3 commit 38740f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
// id "com.github.fudge.forgedflowerloom" version "2.0.0" apply false
id 'maven-publish'
id 'com.matthewprenger.cursegradle'
id "com.modrinth.minotaur" version "1.2.1" apply false
}


Expand All @@ -16,6 +17,7 @@ subprojects {
// apply plugin: "com.github.fudge.forgedflowerloom"
apply plugin: 'maven-publish'
apply plugin: 'com.matthewprenger.cursegradle'
apply plugin: "com.modrinth.minotaur"


dependencies {
Expand Down
21 changes: 21 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,25 @@ curseforge {
options {
forgeGradleIntegration = false
}
}

task publishModrinth (type: com.modrinth.minotaur.TaskModrinthUpload){ // Make sure it runs after build!
group = "upload"
token = project.hasProperty("modrinth_api_key") ? project.modrinth_api_key : ""
projectId = 'yM94ont6'
versionNumber = total_version // Will fail if Modrinth has this version already
versionName = "$mod_name $total_version Fabric"
uploadFile = remapJar
addGameVersion(curseforge_mc_version)
addLoader('fabric')
changelog = rootProject.file("changelog.md")
versionType = "RELEASE"

}

task publishFabric {
afterEvaluate {
dependsOn(curseforge353890)
dependsOn(publishModrinth)
}
}
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 38740f6

Please sign in to comment.