From efa94e674a840f7b1ea6218777d6c66da85f03c9 Mon Sep 17 00:00:00 2001 From: "Jack Gabriel C. Acodili" <112671361+acodili-jg@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:12:04 +0800 Subject: [PATCH] Add upload to modrinth task --- build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build.gradle b/build.gradle index 2ff3df2..c0bdd74 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'com.modrinth.minotaur' version '2.8.2' id 'fabric-loom' version '1.3.8' id 'maven-publish' } @@ -88,6 +89,22 @@ testing { } } +modrinth { + token = System.env.MODRINTH_TOKEN + projectId = '6UK4qZdO' + + versionName = "Still Clouds ${project.version}" + versionType = System.env.MODRINTH_VERSION_TYPE ?: 'release' + versionNumber = project.version + + changelog = System.env.MODRINTH_CHANGELOG ?: '' + dependencies { + optional.project 'fabric-api' + } + + uploadFile = remapJar +} + // configure the maven publication publishing { publications {