Skip to content

Commit 6799e06

Browse files
committed
Update ci.yml
1 parent 6dcbd1b commit 6799e06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,20 @@ jobs:
9797
raww=$(grep -Po 'MODULE\.WorkshopContent\s*=\s*(\{[^}]*\}|"[^"]*")' "$m" | head -n1 | sed -E 's/^[^=]+=\s*//' || true)
9898
feat=$(parse_list "$rawf")
9999
work=$(parse_list "$raww")
100+
# Calculate folder name from module name (same logic as in gather-module-docs)
101+
if [ -n "$name" ]; then
102+
folder=$(echo "$name" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/_/g' | sed -E 's/^_+|_+$//g')
103+
else
104+
folder="$dir"
105+
fi
100106
jq --arg name "$name" \
101107
--arg versionID "$uniqueid" \
102108
--arg author "$author" \
103109
--arg discord "$discord" \
104110
--arg desc "$desc" \
105111
--arg version "$version" \
106112
--arg download "https://github.com/LiliaFramework/Modules/raw/refs/heads/gh-pages/${dir}.zip" \
107-
--arg source "https://liliaframework.github.io/Modules/${dir}.html" \
113+
--arg source "https://liliaframework.github.io/modules/${folder}/about/" \
108114
--argjson features "$feat" \
109115
--argjson workshop "$work" \
110116
'. += [{name:$name,versionID:$versionID,author:$author,discord:$discord,description:$desc,version:$version,download:$download,source:$source,features:$features,workshop:$workshop}]' modules_data.json > tmp.json

0 commit comments

Comments
 (0)