#!/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 "📄 Adding README..." cp public/README.md dist/README.md 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 "📖 Repo: https://github.com/kccleoc/seedpgp-web-app" echo "🏷️ Don't forget to tag: git tag $VERSION && git push --tags" echo "./scripts/deploy.sh v1.2.0" echo "git tag v1.2.0" echo "git push --tags"