From b7c58c99b1ef56cff698c7330a7c49a8ffd62e7e Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 13 Apr 2026 15:52:48 -0700 Subject: [PATCH 1/3] Add Modrinth publish GitHub Actions workflow Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/modrinth-publish.yml | 88 ++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .github/workflows/modrinth-publish.yml diff --git a/.github/workflows/modrinth-publish.yml b/.github/workflows/modrinth-publish.yml new file mode 100644 index 0000000..9b5d213 --- /dev/null +++ b/.github/workflows/modrinth-publish.yml @@ -0,0 +1,88 @@ +name: Publish to Modrinth + +# Triggers when you publish a GitHub Release +on: + release: + types: [published] + workflow_dispatch: + inputs: + tag: + description: 'Release tag to publish (e.g. 1.5.0)' + required: true + type: string + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + # 1. Check out the repository at the release tag + - name: Checkout repository + uses: actions/checkout@v4 + + # 2. Set up Java 21 + - name: Set up Java 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + # 3. Cache Maven dependencies to speed up builds + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + # 4. Build the JAR + # GIT_BRANCH=origin/master activates the Maven 'master' profile which + # produces a clean version number (e.g. 1.5.0) without -SNAPSHOT/-LOCAL. + - name: Build with Maven + run: mvn -B clean package -DskipTests + env: + GIT_BRANCH: origin/master + + # 5. Upload the JAR to Modrinth + # + # Prerequisites — add these secrets in your GitHub repo settings + # (Settings → Secrets and variables → Actions): + # + # MODRINTH_TOKEN — personal access token from https://modrinth.com/settings/pats + # (scope: "Create versions") + # MODRINTH_PROJECT_ID — your Modrinth project ID for Chat, visible on the + # project page under the three-dot menu ("Copy ID") + # + - name: Publish to Modrinth + uses: cloudnode-pro/modrinth-publish@0be4916ad5f081d936eb5615aa35ce3f0949979c # v2 + with: + token: ${{ secrets.MODRINTH_TOKEN }} + project: ${{ secrets.MODRINTH_PROJECT_ID }} + + # Use the release tag, or the manually supplied tag when triggered via workflow_dispatch + version: ${{ github.event.release.tag_name || inputs.tag }} + + # Use the GitHub release body as the changelog (empty when run manually) + changelog: ${{ github.event.release.body }} + + # Chat is a BentoBox addon running on Paper-based servers + loaders: |- + paper + purpur + + # Minecraft versions supported (BentoBox API 3.14.0 targets Paper 1.21.11+) + game-versions: |- + 1.21.5 + 1.21.6 + 1.21.7 + 1.21.8 + 1.21.9 + 1.21.10 + 1.21.11 + 26.1 + 26.1.1 + + # Path to the built JAR + files: target/Chat-${{ github.event.release.tag_name || inputs.tag }}.jar From 205da87f6ec5af40e68afe22deca3f0761d0f0f3 Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 13 Apr 2026 15:53:27 -0700 Subject: [PATCH 2/3] Bump build version from 1.4.0 to 1.4.1 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cd69f81..0542a2b 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ -LOCAL - 1.4.0 + 1.4.1 @@ -366,4 +366,4 @@ - \ No newline at end of file + From 9c3c9963f0241c24d50a09e1d07bfd886590c488 Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 23 Apr 2026 22:36:08 -0700 Subject: [PATCH 3/3] fix(locale): quote cs.yml island-chat-spy syntax to fix malformed YAML The island-chat-spy syntax line contained an unquoted `: ` (colon+space) which YAML interprets as a mapping separator, causing a parse error on startup. Quoted the value to match the already-quoted team-chat-spy line. Fixes BentoBoxWorld/BentoBox#2953 Co-Authored-By: Claude Sonnet 4.6 --- src/main/resources/locales/cs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/locales/cs.yml b/src/main/resources/locales/cs.yml index 2ba31e5..9e29ec3 100644 --- a/src/main/resources/locales/cs.yml +++ b/src/main/resources/locales/cs.yml @@ -25,4 +25,4 @@ chat: description: "Přepnout šmírování chatů na všech ostrovech" spy-on: Šmírování chatů na ostrovech zapnuto spy-off: Šmírování chatů na ostrovech vypnuto - syntax: [island-chat-spy] [name]: [message] + syntax: "[island-chat-spy] [name]: [message]"