File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments