fix(docs): meta file generation override on workflow

This commit is contained in:
xtheeq 2026-05-27 08:21:36 +05:30 committed by DreamMaoMao
parent 5dbbb0a677
commit b98bf780a9

View file

@ -46,6 +46,10 @@ jobs:
if [ -d "/tmp/docs-$tag/docs" ]; then if [ -d "/tmp/docs-$tag/docs" ]; then
name="v${tag#v}" name="v${tag#v}"
cp -r "/tmp/docs-$tag/docs" "$TARGET/$name" cp -r "/tmp/docs-$tag/docs" "$TARGET/$name"
jq --arg title "$name" --arg desc "$name release" \
'.title = $title | .description = $desc | .root = true' \
"$TARGET/$name/meta.json" > "$TARGET/$name/meta.json.tmp" \
&& mv "$TARGET/$name/meta.json.tmp" "$TARGET/$name/meta.json"
fi fi
git worktree remove /tmp/docs-"$tag" git worktree remove /tmp/docs-"$tag"
done done