-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush-to-github.ps1
More file actions
44 lines (32 loc) · 2.06 KB
/
push-to-github.ps1
File metadata and controls
44 lines (32 loc) · 2.06 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
# Push AidRoute Code to GitHub
Write-Host "`n================================================================================" -ForegroundColor Cyan
Write-Host " PUSHING CODE TO GITHUB: Shakil281/AidRoute12" -ForegroundColor Green
Write-Host "================================================================================`n" -ForegroundColor Cyan
# Change to project directory
cd c:\aidroute-frontend
Write-Host "Your commits ready to push:" -ForegroundColor Yellow
git log --oneline -6
Write-Host "`n================================================================================" -ForegroundColor Cyan
Write-Host " PLEASE ENTER YOUR GITHUB PERSONAL ACCESS TOKEN" -ForegroundColor Yellow
Write-Host "================================================================================`n" -ForegroundColor Cyan
Write-Host "If you don't have a token, create one at:" -ForegroundColor White
Write-Host " https://github.com/settings/tokens`n" -ForegroundColor Cyan
Write-Host "Instructions:" -ForegroundColor Yellow
Write-Host " 1. Generate new token (classic)" -ForegroundColor White
Write-Host " 2. Name: aidroute-deploy" -ForegroundColor White
Write-Host " 3. Select: repo (all permissions)" -ForegroundColor White
Write-Host " 4. Generate and copy the token`n" -ForegroundColor White
$token = Read-Host "Paste your GitHub Personal Access Token here"
if ([string]::IsNullOrWhiteSpace($token)) {
Write-Host "`n❌ No token provided. Exiting." -ForegroundColor Red
exit
}
Write-Host "`n📤 Pushing to GitHub..." -ForegroundColor Green
# Push using token
git push https://${token}@github.com/Shakil281/AidRoute12.git main
Write-Host "`n✅ Push complete! Check your repository:" -ForegroundColor Green
Write-Host " https://github.com/Shakil281/AidRoute12" -ForegroundColor Cyan
Write-Host "`n🚀 Now deploy to Vercel:" -ForegroundColor Yellow
Write-Host " 1. Go to: https://vercel.com/new" -ForegroundColor White
Write-Host " 2. Import: Shakil281/AidRoute12" -ForegroundColor White
Write-Host " 3. Click: Deploy" -ForegroundColor White