-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
42 lines (35 loc) · 981 Bytes
/
deploy.bat
File metadata and controls
42 lines (35 loc) · 981 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
@echo off
cd /d "%~dp0"
echo.
echo ======================================================
echo DIAGNOSTIC DEPLOYMENT
echo ======================================================
echo.
:: Check if git is installed
git --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Git is not installed or not in your PATH.
echo Please install Git and restart this window.
pause
exit /b
)
echo [1/4] Checking current status...
git status
echo.
echo [2/4] Adding changes...
git add .
echo.
echo [3/4] Saving changes (Commit)...
git commit -m "Add D.esk AI project card to portfolio"
echo.
echo [4/4] Uploading to GitHub...
:: Trying to push only to 'main' branch
git push origin main --force
echo.
echo ======================================================
echo PROCESS FINISHED!
echo ======================================================
echo If you see "Everything up-to-date", it means it worked.
echo If you see errors, please copy them and tell me!
echo.
pause