-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
33 lines (28 loc) · 892 Bytes
/
deploy.sh
File metadata and controls
33 lines (28 loc) · 892 Bytes
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
#!/bin/bash
# Manual deployment script for GitHub Pages
echo "Building project for GitHub Pages..."
# Install dependencies if needed
npm install
# Clean previous build
rm -rf out/
# Build the project
npm run build
# Check if build was successful
if [ $? -eq 0 ]; then
echo "✅ Build completed successfully!"
echo "📁 Output directory: ./out"
echo ""
echo "To deploy to GitHub Pages:"
echo "1. Push your code to GitHub"
echo "2. Go to Settings > Pages in your repository"
echo "3. Set source to 'GitHub Actions'"
echo "4. The GitHub Actions workflow will handle deployment"
echo ""
echo "Or deploy manually:"
echo "1. Copy contents of 'out' folder"
echo "2. Switch to 'gh-pages' branch"
echo "3. Replace all files with 'out' contents"
echo "4. Commit and push"
else
echo "❌ Build failed. Please check the errors above."
fi