-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
30 lines (27 loc) · 723 Bytes
/
Copy pathdeploy.bat
File metadata and controls
30 lines (27 loc) · 723 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
@echo off
echo ==========================================
echo Starting Automated Deployment to Firebase
echo ==========================================
echo.
echo [1/2] Building the project...
call npm run build
if %errorlevel% neq 0 (
echo.
echo [ERROR] Build failed! Please check the errors above.
pause
exit /b %errorlevel%
)
echo.
echo [2/2] Deploying to Firebase...
call firebase deploy
if %errorlevel% neq 0 (
echo.
echo [ERROR] Deployment failed! Please check your internet connection or firebase login.
pause
exit /b %errorlevel%
)
echo.
echo ==========================================
echo DEPLOYMENT SUCCESSFUL! 🚀
echo ==========================================
pause