2424
2525 - name : Install and build plugins
2626 run : |
27- mkdir -p dist/plugins
27+ mkdir -p dist/
2828 cd plugins
2929 for d in */ ; do
3030 echo "Processing plugin: $d"
@@ -33,28 +33,28 @@ jobs:
3333 pnpm install || { echo "Failed to install dependencies for $d, skipping"; cd ..; continue; }
3434 pnpm run build || { echo "Failed to build $d, skipping"; cd ..; continue; }
3535
36- mkdir -p ../../dist/plugins/ "$d"
37- cp .millennium ../../dist/plugins/ "$d".millennium || echo "Failed to move $d to dist/plugins "
36+ mkdir -p ../../dist/"$d"
37+ cp .millennium ../../dist/"$d".millennium || echo "Failed to move $d to dist"
3838
39- cp plugin.json ../../dist/plugins/ "$d"plugin.json || echo "Failed to move plugin.json to dist/plugins "
40- cp requirements.txt ../../dist/plugins/ "$d"requirements.txt || echo "Failed to move requirements.txt to dist/plugins "
39+ cp plugin.json ../../dist/"$d"plugin.json || echo "Failed to move plugin.json to dist"
40+ cp requirements.txt ../../dist/"$d"requirements.txt || echo "Failed to move requirements.txt to dist"
4141
42- cp README.md ../../dist/plugins/ "$d"README.md || echo "Failed to move README.md to dist/plugins "
43- cp README ../../dist/plugins/ "$d"README || echo "Failed to move README to dist/plugins "
42+ cp README.md ../../dist/"$d"README.md || echo "Failed to move README.md to dist"
43+ cp README ../../dist/"$d"README || echo "Failed to move README to dist"
4444
45- # Get the backend folder from plugin.json and move it to dist/plugins
45+ # Get the backend folder from plugin.json and move it to dist
4646
4747 backend=$(jq -r '.backend' plugin.json)
4848 if [ "$backend" != "null" ]; then
49- cp "$backend" ../../dist/plugins/ "$d""$backend" || echo "Failed to move $backend to dist/plugins "
49+ cp "$backend" ../../dist/"$d""$backend" || echo "Failed to move $backend to dist"
5050 fi
5151
52- # Get extra files from include list in plugin.json and move them to dist/plugins
52+ # Get extra files from include list in plugin.json and move them to dist
5353
5454 include=$(jq -r '.include' plugin.json)
5555 if [ "$include" != "null" ]; then
5656 for file in $include; do
57- cp "$file" ../../dist/plugins/ "$d""$file" || echo "Failed to move $file to dist/plugins "
57+ cp "$file" ../../dist/"$d""$file" || echo "Failed to move $file to dist"
5858 done
5959 fi
6060
0 commit comments