Update doc workflow

This commit is contained in:
Christian Treffs 2024-11-01 08:04:38 +01:00
parent 759f562316
commit 3115243f55
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
1 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ jobs:
for tag in $(echo "master"; git tag -l --sort=-v:refname | grep -e "\d\+\.\d\+.0" | head -6);
do
if [ -d "docs/$tag/data/documentation/fireblade-ecs" ]
if [ -d "docs/$tag/data/documentation/firebladeecs" ]
then
echo "✅ Documentation for "$tag" already exists.";
else
@ -55,10 +55,11 @@ jobs:
swift package \
--allow-writing-to-directory docs/"$tag" \
generate-documentation \
--fallback-bundle-identifier com.github.fireblade-engine.FirebladeECS \
--target FirebladeECS \
--output-path docs/"$tag" \
--transform-for-static-hosting \
--hosting-base-path /FirebladeECS/"$tag" \
--hosting-base-path "$tag" \
&& echo "✅ Documentation generated for FirebladeECS @ "$tag" release." \
|| echo "⚠️ Documentation skipped for FirebladeECS @ "$tag".";
fi;