Skip to content

Commit c3a78b7

Browse files
committed
Update CI workflows to target specific Fabric JAR
1 parent fb83a28 commit c3a78b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/upload-artifact@v4
6464
with:
6565
name: serverpulse-fabric-jar
66-
path: fabric/build/libs/*.jar
66+
path: fabric/build/libs/serverpulse-*.jar
6767
retention-days: 14 # Keep artifacts for 14 days
6868
if-no-files-found: error # Fail the workflow if no JARs are found
6969

.github/workflows/create_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Find Fabric Jar and Extract Name
7676
id: find_fabric_jar
7777
run: |
78-
JAR_PATH=$(find fabric/build/libs -maxdepth 1 -name '*.jar' -printf "%s %p\n" | sort -nr | head -n 1 | awk '{print $2}')
78+
JAR_PATH=$(find fabric/build/libs -maxdepth 1 -name 'serverpulse-*.jar' -printf "%s %p\n" | sort -nr | head -n 1 | awk '{print $2}')
7979
if [ -z "$JAR_PATH" ]; then
8080
echo "Error: Could not find the shadow JAR file in fabric/build/libs/"
8181
exit 1

0 commit comments

Comments
 (0)