Skip to content

Commit

Permalink
Update publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkhax committed Jun 25, 2023
1 parent dc15717 commit f1ff177
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,25 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
project.ext.curse_file_url = "${mod_homepage}/files/${mainFile.curseFileId}"
}
}
}

// Modrinth
modrinth {

def patreonInfo = project.findProperty('patreon')
def changelogText = project.ext.mod_changelog

if (patreonInfo) {
changelogText += "\n\nThis project is made possible by [Patreon](${patreonInfo.campaignUrlTracked}) support from players like you. Thank you!\n\n${patreonInfo.pledgeLog}"
}

token.set(project.findProperty('modrinth_auth'))
projectId.set(modrinth_project)
changelog = changelogText
versionName.set("${mod_name}-Fabric-${minecraft_version}-$version")
versionType.set("release")
uploadFile.set(tasks.remapJar)
dependencies {
required.project("fabric-api")
}
}

0 comments on commit f1ff177

Please sign in to comment.