Skip to content

Commit a6f43eb

Browse files
committed
Update ci.yml
1 parent 983085d commit a6f43eb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)