diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45f8605..ee91b9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,6 +72,28 @@ jobs: name: build-artifacts path: versions/*/build/libs/ + - name: Collect production mod files + run: | + shopt -s extglob + for jar in build-artifacts/*/build/libs/!(*-@(dev|sources|shadow)).jar; do + if [[ -f "$jar" ]]; then + cp -p "$jar" output/ + fi + done + ls -l output + + - name: Upload mod.jar 1 + uses: actions/upload-artifact@v4 + with: + name: built-mods + path: versions/*/build/libs/!(*-@(dev|sources|shadow)).jar + + - name: Upload mod.jar 2 + uses: actions/upload-artifact@v4 + with: + name: built-mods-2 + path: output/*.jar + # # [FEATURE] FALLENS_MAVEN # - name: Publish with gradle # if: inputs.release || github.ref == 'refs/heads/dev'