mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
docs: add GitHub Pages deployment guide
This commit is contained in:
22
scripts/deploy.sh
Executable file
22
scripts/deploy.sh
Executable 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"
|
||||||
Reference in New Issue
Block a user