Skip to content

Commit fe19d63

Browse files
tastybentoclaude
andcommitted
ci: add CurseForge publish workflow (publishes the release asset)
Publish the jar attached to each GitHub release to CurseForge via the shared BentoBoxWorld/.github reusable workflow, downloading the release asset instead of rebuilding from source. Mirrors the BentoBox core setup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4cbe568 commit fe19d63

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
# Level — .github/workflows/publish.yml
2-
# CurseForge-first rollout. Hangar left blank; add its slug later to enable Hangar.
2+
# Publishes the jar attached to a GitHub release to CurseForge (and Hangar once a
3+
# slug is set) via the shared BentoBoxWorld/.github reusable workflow. It downloads
4+
# the release asset rather than rebuilding from source, so a dependency-repo outage
5+
# can't block publishing. Includes workflow_dispatch to (re)publish a given version.
36

4-
name: Publish release
7+
name: Publish release to CurseForge
58

69
on:
710
release:
811
types: [published]
12+
workflow_dispatch:
13+
inputs:
14+
version:
15+
description: "Version to publish (e.g. 1.2.3)"
16+
required: true
17+
type: string
918

1019
jobs:
1120
publish:
12-
uses: bentoboxworld/.github/.github/workflows/publish-platforms.yml@main
21+
uses: bentoboxworld/.github/.github/workflows/publish-platforms.yml@master
1322
with:
14-
hangar_slug: ""
23+
use_release_asset: "true" # publish the jar attached to the release; do not rebuild
24+
hangar_slug: "" # set the Hangar project slug to enable Hangar publishing
1525
curseforge_id: "1514824"
16-
game_versions: "26.1.2,26.1.1,26.1,1.21.11,1.21.10,1.21.9,1.21.8,1.21.7,1.21.6"
26+
game_versions: "26.2,26.1.2,26.1.1,26.1,1.21.11,1.21.10,1.21.9,1.21.8,1.21.7,1.21.6,1.21.5"
27+
version: ${{ inputs.version }} # empty on release events -> falls back to the release tag
1728
secrets:
1829
HANGAR_API_KEY: ${{ secrets.HANGAR_API_KEY }}
1930
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}

0 commit comments

Comments
 (0)