Skip to content

Commit

Permalink
add mod publish plugin
Browse files Browse the repository at this point in the history
(Tokens are only generated by myself)
  • Loading branch information
QiuShui1012 committed Dec 15, 2024
1 parent 4db6849 commit 6bfeeb7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias libs.plugins.fabric.loom
alias libs.plugins.modpublish
id 'maven-publish'
}

Expand Down Expand Up @@ -74,4 +75,24 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}

publishMods {
file = remapJar.archiveFile
changelog = "## What's new\n"
type = STABLE
modLoaders.add("fabric")

modrinth {
accessToken = providers.environmentVariable("MODRINTH_PUBLISH_VERSION_PAT")
projectId = "JyI4tI00"
minecraftVersions.add("1.21.2")
minecraftVersions.add("1.21.3")
}
github {
accessToken = providers.environmentVariable("GITHUB_PUBLISH_VERSION_PAT")
repository = "QiuShui1012/Qualia-Carpet-Addition"
commitish = "main"
tagName = project.version
}
}
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lombok = "1.18.30"

# Gradle Plugin Properties
fabric-loom = "1.8-SNAPSHOT"
modpublish = "0.8.2"

[libraries]

Expand All @@ -36,4 +37,5 @@ fabric-carpet = { group = "carpet", name = "fabric-carpet", version.ref = "fabri

[plugins]

fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }
fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }
modpublish = { id = "me.modmuss50.mod-publish-plugin", version.ref = "modpublish"}

0 comments on commit 6bfeeb7

Please sign in to comment.