fixed another issue in the script

This commit is contained in:
Parker TenBroeck 2026-01-07 14:17:49 -05:00
parent a9717f7c70
commit 70f8aa9802

View file

@ -90,5 +90,14 @@ cp -R dist/. ../docs/
# Commit if changed # Commit if changed
if git diff --quiet; then if git diff --quiet; then
echo "✅ No changes to commit echo "✅ No changes to commit in docs/. Skipping commit."
::contentReference[oaicite:0]{index=0} else
echo "📝 Committing docs update..."
git add docs
git commit -m "Deploy: update docs from dist"
fi
echo "🚀 Pushing '$PAGES_BRANCH' to '$REMOTE'..."
git push "$REMOTE" "$PAGES_BRANCH"
echo "✅ Done. Returning to '$ORIG_BRANCH' (handled by trap)."