Skip to content

Commit

Permalink
fix: Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 10, 2024
1 parent 9dd9b85 commit edbaf1e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
cp README.md ../../dist/"$d"README.md || echo "Failed to move README.md to dist"
cp README ../../dist/"$d"README || echo "Failed to move README to dist"
echo "{\"commit\": \"$(git rev-parse HEAD)\", \"id\": \"$(git rev-list --max-parents=0 HEAD)\"}" > metadata.json
cp metadata.json ../../dist/"$d"metadata.json || echo "Failed to move metadata.json to dist"
# Get the backend folder from plugin.json and move it to dist
backend=$(jq -r '.backend' plugin.json)
if [ "$backend" != "null" ]; then
Expand Down Expand Up @@ -74,15 +78,6 @@ jobs:
# get theme name
theme_name=$(jq -r '.name' "$folder"plugin.json)
touch "$folder"metadata.json
cd "$folder"
# write current commit id to metadata.json
echo "{\"commit\": \"$(git rev-parse HEAD)\", \"id\": \"$(git rev-list --max-parents=0 HEAD)\"}" > metadata.json
cd -
echo "Zipping folder: $folder"
zip -r "$out.zip" "$folder" || echo "Failed to zip $folder"
mv "$out.zip" ../build/$theme_name.zip || echo "Failed to move $folder.zip to build"
Expand Down

0 comments on commit edbaf1e

Please sign in to comment.