diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..7ff1fae --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +VERSION=$1 + +if [ -z "$VERSION" ]; then + echo "Usage: ./scripts/deploy.sh v1.2.0" + exit 1 +fi + +echo "🔨 Building $VERSION..." +bun run build + +echo "📦 Deploying to GitHub Pages..." +cd dist +git add . +git commit -m "Deploy $VERSION" || echo "No changes to commit" +git push + +cd .. +echo "✅ Deployed to https://kccleoc.github.io/seedpgp-web-app/" +echo "🏷️ Don't forget to tag: git tag $VERSION && git push --tags"