-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.ps1
More file actions
43 lines (33 loc) · 1.73 KB
/
Copy pathsetup-github.ps1
File metadata and controls
43 lines (33 loc) · 1.73 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
# GitHub Repository Setup Script
# This script helps you create a GitHub repository and push your code
Write-Host "=== GitHub Repository Setup ===" -ForegroundColor Cyan
Write-Host ""
# Get repository name
$repoName = Read-Host "Enter your GitHub repository name (e.g., 'nextnode-learning')"
# Get GitHub username
$username = Read-Host "Enter your GitHub username"
Write-Host ""
Write-Host "Creating repository on GitHub..." -ForegroundColor Yellow
Write-Host "Please create the repository manually on GitHub.com:" -ForegroundColor Yellow
Write-Host "1. Go to https://github.com/new" -ForegroundColor White
Write-Host "2. Repository name: $repoName" -ForegroundColor White
Write-Host "3. Make it PUBLIC (required for free GitHub Pages)" -ForegroundColor White
Write-Host "4. DO NOT initialize with README, .gitignore, or license" -ForegroundColor White
Write-Host "5. Click 'Create repository'" -ForegroundColor White
Write-Host ""
$continue = Read-Host "Press Enter after you've created the repository on GitHub"
Write-Host ""
Write-Host "Setting up remote and pushing code..." -ForegroundColor Yellow
# Add remote
git remote add origin "https://github.com/$username/$repoName.git"
# Push to main
Write-Host "Pushing to GitHub..." -ForegroundColor Yellow
git push -u origin main
Write-Host ""
Write-Host "=== Next Steps ===" -ForegroundColor Green
Write-Host "1. Go to: https://github.com/$username/$repoName/settings/pages" -ForegroundColor White
Write-Host "2. Under 'Source', select 'GitHub Actions'" -ForegroundColor White
Write-Host "3. The deployment will start automatically!" -ForegroundColor White
Write-Host ""
Write-Host "Your site will be available at:" -ForegroundColor Cyan
Write-Host "https://$username.github.io/$repoName/" -ForegroundColor Green