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