From abb9a0f4103c01c3eace179ebf0550f5a1bb0373 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 10 May 2026 11:26:01 +0900 Subject: [PATCH] ci: add NeoForge JAR collection to GitHub Release step Expand JAR glob from fabric-only to fabric+neoforge, exclude sources and test JARs. Add explicit shell: bash for bash-specific syntax. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1a75c0a..92bd9de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -97,6 +97,7 @@ jobs: CURSEFORGE_ID: ${{ secrets.CURSEFORGE_ID }} CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} - name: Create GitHub Release + shell: bash env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG_NAME: ${{ github.ref_name }} @@ -104,7 +105,15 @@ jobs: MOD_VERSION: ${{ steps.version.outputs.mod_version }} run: | shopt -s nullglob - assets=(versions/*/build/libs/connectedtank-"${MOD_VERSION}"+fabric-*.jar) + assets=() + for jar in \ + versions/*/build/libs/connectedtank-"${MOD_VERSION}"+fabric-*.jar \ + versions/*/build/libs/connectedtank-"${MOD_VERSION}"+neoforge-*.jar; do + [[ "$jar" == *-sources.jar ]] && continue + [[ "$jar" == *-client-gametest.jar ]] && continue + [[ "$jar" == *-client-gametest-remapped.jar ]] && continue + assets+=("$jar") + done if [ ${#assets[@]} -eq 0 ]; then echo "::error::No release assets found matching pattern" exit 1