-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployAll.bat
More file actions
49 lines (41 loc) · 1.05 KB
/
Copy pathdeployAll.bat
File metadata and controls
49 lines (41 loc) · 1.05 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
@echo off
echo ========================================
echo Deploy All
echo 1. Push to Main
echo 2. Deploy to GitHub Pages / Server
echo ========================================
echo.
rem --- Step 1: Push to main branch (only if changes exist) ---
echo [1/2] Pushing to main branch...
echo.
git add .
git diff --staged --quiet
if %errorlevel% neq 0 (
git commit -m "update contents"
git push origin main
echo [OK] Pushed to main.
) else (
echo [SKIP] No changes to commit.
)
echo.
rem --- Step 2: Build and deploy to gh-pages (triggers server webhook) ---
echo [2/2] Building and deploying to GitHub Pages...
echo.
call npm run deploy
if %errorlevel% neq 0 (
echo.
echo [ERROR] Deploy failed!
goto end
)
echo.
echo ========================================
echo [SUCCESS] All done!
echo.
echo GitHub Pages : https://tsubokulab.github.io/Claude-PortfolioSite/
echo Production : https://teruaki-tsubokura.com
echo.
echo * Server update may take a few seconds.
echo ========================================
:end
echo.
pause