diff --git a/scripts/deploy.sh b/scripts/deploy.sh index de0e728..f5ea077 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -9,6 +9,14 @@ ROOT_DIR="$SCRIPT_DIR/.." source "$ROOT_DIR/scripts/config.sh" # Make sure we're up-to-date +if [ -n "$(git status --porcelain)" ]; then + echo "=> You have unsaved (git) changes" + exit 1 +fi + +bun run build +git commit -am "update build.js" + git push origin main git push gitea main