Skip to content

Commit

Permalink
Setup hangar publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Feb 13, 2023
1 parent 626cf61 commit e137cce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
call-build:
uses: "jpenilla/actions/.github/workflows/shared-ci.yml@master"
secrets: inherit
with:
hangar-publish: true
init-submodules: true
artifacts-path: 'build/libs/*-all.jar'
16 changes: 16 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import io.papermc.hangarpublishplugin.model.Platforms
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription

plugins {
Expand All @@ -6,6 +7,7 @@ plugins {
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
id("xyz.jpenilla.run-paper") version "2.0.1"
id("net.kyori.indra.license-header") version "3.0.1"
id("io.papermc.hangar-publish-plugin") version "0.0.3"
}

group = "xyz.jpenilla"
Expand Down Expand Up @@ -102,3 +104,17 @@ bukkit {
}
}
}

hangarPublish.publications.register("plugin") {
version.set(project.version as String)
owner.set("jmp")
slug.set("ChessCraft")
channel.set("Release")
changelog.set(providers.environmentVariable("RELEASE_NOTES"))
platforms {
register(Platforms.PAPER) {
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
platformVersions.set(listOf("1.19"))
}
}
}

0 comments on commit e137cce

Please sign in to comment.