-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.sh
More file actions
executable file
·60 lines (52 loc) · 1.75 KB
/
setup-github.sh
File metadata and controls
executable file
·60 lines (52 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Sync GitHub Setup Script
# This script helps you set up your GitHub repository and deploy your website
echo "🚀 Setting up Sync for GitHub deployment..."
echo ""
# Check if we're in a git repository
if [ ! -d ".git" ]; then
echo "❌ Not in a git repository. Please run 'git init' first."
exit 1
fi
echo "✅ Git repository initialized"
echo ""
# Check if remote origin exists
if git remote get-url origin >/dev/null 2>&1; then
echo "✅ Remote origin already exists:"
git remote get-url origin
else
echo "📝 No remote origin found. You'll need to:"
echo " 1. Go to GitHub.com and create a new repository called 'sync'"
echo " 2. Copy the repository URL"
echo " 3. Run: git remote add origin <your-repo-url>"
echo " 4. Run: git push -u origin main"
echo ""
fi
echo "🌐 Deployment Options:"
echo ""
echo "Option 1: Vercel (Recommended for Next.js)"
echo " 1. Go to https://vercel.com"
echo " 2. Sign up with GitHub"
echo " 3. Import your 'sync' repository"
echo " 4. Set root directory to 'website'"
echo " 5. Deploy!"
echo ""
echo "Option 2: GitHub Pages"
echo " 1. Enable GitHub Pages in repository settings"
echo " 2. Use GitHub Actions workflow (already included)"
echo ""
echo "Option 3: Netlify"
echo " 1. Go to https://netlify.com"
echo " 2. Connect your GitHub repository"
echo " 3. Set build command: 'cd website && npm run build'"
echo " 4. Deploy!"
echo ""
echo "📋 Next Steps:"
echo " 1. Create GitHub repository"
echo " 2. Add remote origin"
echo " 3. Push your code"
echo " 4. Deploy to your chosen platform"
echo " 5. Share your live website!"
echo ""
echo "🎉 Your Sync website is ready to go public!"
echo " Check DEPLOYMENT-GUIDE.md for detailed instructions"