Skip to content

Commit

Permalink
Add Minotaur for Modrinth uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Jun 27, 2022
1 parent 54cbc60 commit a1c10d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import java.nio.charset.StandardCharsets

plugins {
id 'maven-publish'
alias(libs.plugins.quilt.loom)
alias(libs.plugins.minotaur)
}

archivesBaseName = project.archives_base_name
Expand Down Expand Up @@ -81,4 +84,21 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "arch-ex"
uploadFile = remapJar
gameVersions = [libs.versions.minecraft.get()]
loaders = ["quilt"]
def ref = System.getenv("GITHUB_REF")
changelog = System.getenv("CHANGELOG") ?:
(ref != null && ref.startsWith("refs/tags/")) ?
"You may view the changelog at https://github.com/woodiertexas/architecture-extensions/releases/tag/${URLEncoder.encode(ref.substring(10), StandardCharsets.UTF_8)}" :
"No changelog is available. Perhaps poke at https://github.com/woodiertexas/architecture-extensions for a changelog?"

dependencies {
required.project "qsl"
}
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ quilted_fabric_api = ["quilted_fabric_api", "quilted_fabric_api_deprecated"]

[plugins]
quilt_loom = { id = "org.quiltmc.loom", version = "0.12.+" }
minotaur = { id = "com.modrinth.minotaur", version = "2.+" }

0 comments on commit a1c10d2

Please sign in to comment.