nose-pluto/scripts/deploy.sh
2025-10-06 20:50:15 -07:00

24 lines
502 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -e
# Get absolute path of this scripts directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/.."
# Run deploy + config with absolute paths
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
# Run remote install on the target
curl $URL/cmd/update