-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
43 lines (37 loc) · 1005 Bytes
/
deploy.bat
File metadata and controls
43 lines (37 loc) · 1005 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
34
35
36
37
38
39
40
41
42
43
@echo off
setlocal
echo ==========================================
echo VALYRIA DEPLOYMENT PROTOCOL
echo ==========================================
echo.
echo Initializing Git repository...
git init
git add .
git commit -m "Initialize Valyria Singularity"
git branch -M main
echo.
echo ==========================================
echo ENTER YOUR GITHUB REPOSITORY URL BELOW
echo (e.g., https://github.com/username/valyria.git)
echo ==========================================
set /p repo_url="Repository URL: "
if "%repo_url%"=="" goto error
echo.
echo Linking remote origin...
git remote add origin %repo_url%
echo.
echo Pushing to GitHub...
git push -u origin main
echo.
echo ==========================================
echo DEPLOYMENT SEQUENCE COMPLETE
echo ==========================================
echo.
echo Now go to your GitHub Repository Settings -> Pages
echo and select 'main' branch / root folder.
pause
exit /b
:error
echo.
echo Error: No URL provided. Aborting sequence.
pause