Skip to content

Commit

Permalink
Implement mod publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 committed Feb 26, 2024
1 parent ab89a8e commit e99639b
Show file tree
Hide file tree
Showing 2 changed files with 33 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 @@
Add burrow estimation to Mythological Ritual Helper.
Fix Fairy Souls sometimes throwing an error when clicked.
Add mod name to log messages.
31 changes: 30 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

sourceCompatibility = JavaVersion.VERSION_17
Expand Down Expand Up @@ -87,4 +88,32 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}

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

curseforge {
projectId = "658094"
projectSlug = "skyblockmod" // Required for discord webhook
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
minecraftVersions.add("1.20.3")
minecraftVersions.add("1.20.4")
requires("fabric-api")
}
modrinth {
projectId = "GTIrlvJk"
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
minecraftVersions.add("1.20.3")
minecraftVersions.add("1.20.4")
}
github {
repository = "kevinthegreat1/SkyblockMod-Fabric"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
commitish = "main"
}
}

0 comments on commit e99639b

Please sign in to comment.