Skip to content

Commit a6e5e1b

Browse files
tastybentoclaude
andcommitted
ci: pin reusable workflow to SHA and enable Hangar publish
Pin bentoboxworld/.github publish-platforms.yml to commit e0c5d98f5e6ef9ea7c9a28afad05f4c07bcde898 (Sonar githubactions:S7637) and set the Hangar slug so releases publish to Hangar alongside CurseForge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fe19d63 commit a6e5e1b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Level — .github/workflows/publish.yml
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.
2+
# Publishes the jar attached to a GitHub release to CurseForge and Hangar via the
3+
# shared BentoBoxWorld/.github reusable workflow. Downloads the release asset instead of
4+
# rebuilding from source. The reusable workflow is pinned to a commit SHA (Sonar
5+
# githubactions:S7637). workflow_dispatch lets you (re)publish a given version.
66

7-
name: Publish release to CurseForge
7+
name: Publish release to CurseForge and Hangar
88

99
on:
1010
release:
@@ -18,10 +18,10 @@ on:
1818

1919
jobs:
2020
publish:
21-
uses: bentoboxworld/.github/.github/workflows/publish-platforms.yml@master
21+
uses: bentoboxworld/.github/.github/workflows/publish-platforms.yml@e0c5d98f5e6ef9ea7c9a28afad05f4c07bcde898 # master
2222
with:
2323
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
24+
hangar_slug: "Level" # blank = skip Hangar
2525
curseforge_id: "1514824"
2626
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"
2727
version: ${{ inputs.version }} # empty on release events -> falls back to the release tag

0 commit comments

Comments
 (0)