Skip to content

Commit

Permalink
better mod file artifact upload testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Nov 28, 2024
1 parent ad51f9a commit d1d778c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: build-artifacts/*/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'
Expand Down

0 comments on commit d1d778c

Please sign in to comment.