-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-github.bat
More file actions
65 lines (55 loc) · 1.21 KB
/
Copy pathdeploy-github.bat
File metadata and controls
65 lines (55 loc) · 1.21 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
61
62
63
64
65
@echo off
REM Script de deploiement GitHub
echo.
echo ================== GITHUB DEPLOYMENT =================
echo Username: Durrell-229
echo ======================================================
echo.
echo Step 1: Configure Git...
git config user.name "Admin"
git config user.email "admin@test.fr"
echo OK
echo.
echo Step 2: Init repo...
if not exist ".git" (
git init
echo OK
) else (
echo Already initialized
)
echo.
echo Step 3: Add files...
git add .
echo OK
echo.
echo Step 4: Commit...
git commit -m "ACADEMIE NUMERIQUE - Initial deployment"
echo OK
echo.
echo Step 5: Connect to GitHub...
git remote remove origin 2>nul
git remote add origin https://github.com/Durrell-229/numerique.git
echo OK
echo.
echo Step 6: Set main branch...
git branch -M main
echo OK
echo.
echo Step 7: Push to GitHub...
echo.
echo IMPORTANT:
echo - Enter username: Durrell-229
echo - For password, use a GitHub TOKEN (not your password!)
echo - Create token: https://github.com/settings/tokens
echo.
pause
git push -u origin main
echo.
echo ============== SUCCESS! ===============
echo Your code is on GitHub!
echo.
echo URL: https://github.com/Durrell-229/numerique
echo.
echo Next: Deploy to Railway (see DEPLOIEMENT_RAPIDE.md)
echo.
pause