-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
28 lines (24 loc) · 823 Bytes
/
deploy.bat
File metadata and controls
28 lines (24 loc) · 823 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
@echo off
echo ==========================================
echo Wiki Deployment Helper
echo ==========================================
echo.
:: 1. Add all changes
echo [1/3] Adding changes...
git add .
:: 2. Commit changes
set /p commit_msg="Enter commit message (Press Enter for default): "
if "%commit_msg%"=="" set commit_msg=Auto-deployment update %date% %time%
echo [2/3] Committing with message: "%commit_msg%"
git commit -m "%commit_msg%"
:: 3. Push to main
echo [3/3] Pushing to GitHub...
git push origin main
echo.
echo ==========================================
echo Success! Changes have been pushed.
echo GitHub Actions is now building and deploying your site.
echo.
echo Track progress here: https://github.com/TransientCodes/TransientWiki/actions
echo ==========================================
pause