Skip to content

Commit 52a5dd7

Browse files
committed
better mod file artifact upload
1 parent ad51f9a commit 52a5dd7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ jobs:
7272
name: build-artifacts
7373
path: versions/*/build/libs/
7474

75+
- name: Collect mod jars
76+
run: |
77+
shopt -s extglob
78+
mkdir mod-jars
79+
for jar in versions/*/build/libs/!(*-@(dev|sources|shadow)).jar; do
80+
cp -p "$jar" mod-jars/
81+
done
82+
ls -l mod-jars
83+
84+
# This is the artifact recommended for users to download
85+
- name: Upload mod jars
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: mod-jars
89+
path: mod-jars/*.jar
90+
7591
# # [FEATURE] FALLENS_MAVEN
7692
# - name: Publish with gradle
7793
# if: inputs.release || github.ref == 'refs/heads/dev'

0 commit comments

Comments
 (0)