mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
fixed another issue in the script
This commit is contained in:
parent
a9717f7c70
commit
70f8aa9802
1 changed files with 11 additions and 2 deletions
|
|
@ -90,5 +90,14 @@ cp -R dist/. ../docs/
|
|||
|
||||
# Commit if changed
|
||||
if git diff --quiet; then
|
||||
echo "✅ No changes to commit
|
||||
::contentReference[oaicite:0]{index=0}
|
||||
echo "✅ No changes to commit in docs/. Skipping commit."
|
||||
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)."
|
||||
Loading…
Add table
Add a link
Reference in a new issue