docs: add GitHub Pages deployment guide

This commit is contained in:
LC mac
2026-01-28 12:36:13 +08:00
parent a96b39bb62
commit b1d3406cc7

22
scripts/deploy.sh Executable file
View File

@@ -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"