Skip to content

Commit e99639b

Browse files
Implement mod publish plugin
1 parent ab89a8e commit e99639b

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add burrow estimation to Mythological Ritual Helper.
2+
Fix Fairy Souls sometimes throwing an error when clicked.
3+
Add mod name to log messages.

build.gradle

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'fabric-loom' version '1.4-SNAPSHOT'
33
id 'maven-publish'
4+
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
45
}
56

67
sourceCompatibility = JavaVersion.VERSION_17
@@ -87,4 +88,32 @@ publishing {
8788
// The repositories here will be used for publishing your artifact, not for
8889
// retrieving dependencies.
8990
}
90-
}
91+
}
92+
93+
publishMods {
94+
file = remapJar.archiveFile
95+
displayName = "Skyblock Mod ${mod_version} for ${minecraft_version}"
96+
changelog = rootProject.file("CHANGELOG.md").text
97+
type = STABLE
98+
modLoaders.add("fabric")
99+
100+
curseforge {
101+
projectId = "658094"
102+
projectSlug = "skyblockmod" // Required for discord webhook
103+
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
104+
minecraftVersions.add("1.20.3")
105+
minecraftVersions.add("1.20.4")
106+
requires("fabric-api")
107+
}
108+
modrinth {
109+
projectId = "GTIrlvJk"
110+
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
111+
minecraftVersions.add("1.20.3")
112+
minecraftVersions.add("1.20.4")
113+
}
114+
github {
115+
repository = "kevinthegreat1/SkyblockMod-Fabric"
116+
accessToken = providers.environmentVariable("GITHUB_TOKEN")
117+
commitish = "main"
118+
}
119+
}

0 commit comments

Comments
 (0)