File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,18 @@ jobs:
101101 cp "README.md" dist/README.md 2>/dev/null || echo "::warning::README.md not found, skipping."
102102 cp "README" dist/README 2>/dev/null || echo "::warning::README not found, skipping."
103103
104- backend=$(jq -r '.backend' plugin.json)
105- if [ "$backend" != "null" ]; then
106- cp -r "$backend" ./dist/"$backend"
104+ BACKEND_DIR=$(jq -r '.backend' plugin.json)
105+ if [ "$BACKEND_DIR" != "null" ]; then
106+ cp -r "$BACKEND_DIR" ./dist/"$BACKEND_DIR"
107+ else
108+ cp -r "backend" ./dist/backend
109+ fi
110+
111+ FRONTEND_DIR=$(jq -r '.frontend' plugin.json)
112+ if [ "$FRONTEND_DIR" != "null" ]; then
113+ cp -r "$FRONTEND_DIR" ./dist/"$FRONTEND_DIR"
114+ else
115+ cp -r "frontend" ./dist/frontend
107116 fi
108117
109118 include=$(jq -r '.include // [] | .[]' plugin.json)
You can’t perform that action at this time.
0 commit comments