-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
Β·51 lines (43 loc) Β· 1.45 KB
/
deploy.sh
File metadata and controls
executable file
Β·51 lines (43 loc) Β· 1.45 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
#!/bin/bash
# π Expedition 33 Planner - GitHub Pages Deployment Script
echo "π Starting GitHub Pages deployment..."
# Check if we're in a git repository
if [ ! -d ".git" ]; then
echo "β Error: Not in a git repository. Run 'git init' first."
exit 1
fi
# Check if there are uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
echo "π Found uncommitted changes. Adding and committing..."
git add .
git commit -m "feat: deploy modern SPA with sidebar navigation to GitHub Pages"
else
echo "β
No uncommitted changes found."
fi
# Check if origin remote exists
if ! git remote get-url origin > /dev/null 2>&1; then
echo "β Error: No origin remote found."
echo "Please add your GitHub repository as origin:"
echo "git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git"
exit 1
fi
# Get the current branch
BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "π Current branch: $BRANCH"
# Push to GitHub
echo "β¬οΈ Pushing to GitHub..."
git push origin $BRANCH
echo "β
Deployment initiated!"
echo ""
echo "π§ Next steps:"
echo "1. Go to your GitHub repository"
echo "2. Navigate to Settings β Pages"
echo "3. Set Source to 'GitHub Actions'"
echo ""
echo "π Your site will be available at:"
echo "https://YOUR_USERNAME.github.io/YOUR_REPO_NAME/"
echo ""
echo "π Check deployment status at:"
echo "https://github.com/YOUR_USERNAME/YOUR_REPO_NAME/actions"
echo ""
echo "π Deployment complete!"