diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81eb10b..0271496 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,10 +5,14 @@ on: branches: [ "**" ] tags-ignore: [ "**" ] pull_request: + release: + types: [ released ] jobs: call-build: uses: "jpenilla/actions/.github/workflows/shared-ci.yml@master" + secrets: inherit with: + modrinth-publish: true artifacts-path: 'build/libs/better-fabric-console-mc*.jar' loom: true diff --git a/build.gradle.kts b/build.gradle.kts index d832838..b86bd98 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,10 @@ plugins { - val indraVersion = "2.1.1" + val indraVersion = "3.0.1" id("net.kyori.indra") version indraVersion id("net.kyori.indra.checkstyle") version indraVersion id("net.kyori.indra.license-header") version indraVersion id("quiet-fabric-loom") + id("com.modrinth.minotaur") version "2.7.5" } version = "1.1.4-SNAPSHOT" @@ -67,3 +68,11 @@ tasks { archiveFileName.set("${project.name}-mc$minecraftVersion-${project.version}.jar") } } + +modrinth { + projectId.set("Y8o1j1Sf") + versionType.set("release") + file.set(tasks.remapJar.flatMap { it.archiveFile }) + changelog.set(providers.environmentVariable("RELEASE_NOTES")) + token.set(providers.environmentVariable("MODRINTH_TOKEN")) +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 943f0cb..ccebba7 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f398c33..bdc9a83 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 65dcd68..79a61d4 100755 --- a/gradlew +++ b/gradlew @@ -144,7 +144,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac @@ -152,7 +152,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac diff --git a/settings.gradle.kts b/settings.gradle.kts index c2ed256..338fb0f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -22,7 +22,7 @@ pluginManagement { } plugins { - id("quiet-fabric-loom") version "1.0-SNAPSHOT" + id("quiet-fabric-loom") version "1.1-SNAPSHOT" } rootProject.name = "better-fabric-console"