Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Jan 2, 2025
1 parent 983085d commit a6f43eb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,18 @@ jobs:
cp "README.md" dist/README.md 2>/dev/null || echo "::warning::README.md not found, skipping."
cp "README" dist/README 2>/dev/null || echo "::warning::README not found, skipping."
backend=$(jq -r '.backend' plugin.json)
if [ "$backend" != "null" ]; then
cp -r "$backend" ./dist/"$backend"
BACKEND_DIR=$(jq -r '.backend' plugin.json)
if [ "$BACKEND_DIR" != "null" ]; then
cp -r "$BACKEND_DIR" ./dist/"$BACKEND_DIR"
else
cp -r "backend" ./dist/backend
fi
FRONTEND_DIR=$(jq -r '.frontend' plugin.json)
if [ "$FRONTEND_DIR" != "null" ]; then
cp -r "$FRONTEND_DIR" ./dist/"$FRONTEND_DIR"
else
cp -r "frontend" ./dist/frontend
fi
include=$(jq -r '.include // [] | .[]' plugin.json)
Expand Down

0 comments on commit a6f43eb

Please sign in to comment.