Skip to content

Commit

Permalink
Add mod publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 committed Apr 21, 2024
1 parent 219a407 commit ad14cd6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Packet Ignore 1.0.3 for 1.20.3 - 1.20.5

Support for 1.20.3 - 1.2.5
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Template
# Packet Ignore

Port of [packetignore](https://modrinth.com/mod/packetignore) to Fabric 1.19.2+.

Ignore half of nonessential server bound packets. Unexpected things will happen.
31 changes: 31 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

version = project.mod_version
Expand Down Expand Up @@ -72,3 +73,33 @@ publishing {
// retrieving dependencies.
}
}

publishMods {
file = remapJar.archiveFile
displayName = "Packet Ignore ${mod_version} for ${minecraft_version}"
changelog = rootProject.file("CHANGELOG.md").text
type = STABLE
modLoaders.add("fabric")

curseforge {
projectId = "1006659"
projectSlug = "packet-ignore" // Required for discord webhook
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
minecraftVersions.add("1.20.3")
minecraftVersions.add("1.20.4")
minecraftVersions.add("1.20.5")
requires("fabric-api")
}
modrinth {
projectId = "BD6XSj38"
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
minecraftVersions.add("1.20.3")
minecraftVersions.add("1.20.4")
minecraftVersions.add("1.20.5")
}
github {
repository = "kevinthegreat1/packet-ignore"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
commitish = "main"
}
}

0 comments on commit ad14cd6

Please sign in to comment.