Skip to content

Commit ff234eb

Browse files
authored
Update build.yml
1 parent da29961 commit ff234eb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,19 @@ jobs:
5151
echo "Building version: $VERSION"
5252
mvn clean package -Drevision=$VERSION
5353
54-
- name: 🧹 Rename shaded output JAR
54+
- name: 📦 Rename and move JAR to dist/
5555
run: |
56-
mkdir dist
57-
SHADED=$(find target -name "*-shaded.jar" | head -n1)
58-
cp "$SHADED" "dist/AutoPickup-${{ env.BASE_VERSION }}-DEVBUILD.${{ steps.get-devbuild.outputs.build_num }}.jar"
56+
mkdir -p dist
57+
JAR=$(find target -name "AutoPickup-*.jar" ! -name "*-original.jar" | head -n1)
58+
59+
if [ -z "$JAR" ]; then
60+
echo "❌ No JAR found in target/"
61+
ls -l target
62+
exit 1
63+
fi
64+
65+
cp "$JAR" "dist/AutoPickup-${{ env.BASE_VERSION }}-DEVBUILD.${{ steps.get-devbuild.outputs.build_num }}.jar"
66+
5967

6068
- name: 📥 Upload Dev Build Artifact
6169
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)