forked from drmobile11/obsidian-rain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
87 lines (72 loc) · 2.06 KB
/
deploy.bat
File metadata and controls
87 lines (72 loc) · 2.06 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
echo 🚀 Make It Rain Enhanced - Windows Deployment Script
echo =============================================
REM Check if git is available
git --version >nul 2>&1
if errorlevel 1 (
echo ❌ Git is not installed or not in PATH
pause
exit /b 1
)
REM Check if we're in a git repository
if not exist ".git" (
echo ❌ Not a git repository. Please run 'git init' first.
pause
exit /b 1
)
echo 📋 Current git status:
git status --short
echo.
echo 🔍 Checking for changes...
for /f %%i in ('git status --porcelain') do (
set HAS_CHANGES=1
goto :has_changes
)
echo ✅ Working directory is clean
goto :check_push
:has_changes
echo 📝 Found changes to commit:
git status --short
echo.
set /p COMMIT_CHOICE=🤔 Do you want to commit these changes? (y/N):
if /i "%COMMIT_CHOICE%"=="y" (
echo 📦 Staging all changes...
git add .
echo 💬 Committing changes...
git commit -m "Enhanced Make It Rain v2.0.0 - Modern UI with React, MDX support, and responsive design"
echo ✅ Changes committed successfully!
) else (
echo ⏩ Skipping commit...
)
:check_push
echo.
echo 🏷️ Creating release tag v2.0.0...
git tag -a "v2.0.0" -m "Release v2.0.0 - Enhanced Modern UI" 2>nul
if errorlevel 1 (
echo ⚠️ Tag might already exist or creation failed
) else (
echo ✅ Tag v2.0.0 created successfully!
)
echo.
echo 📤 Preparing to push to repository...
set /p PUSH_CHOICE=🤔 Push to origin? (y/N):
if /i "%PUSH_CHOICE%"=="y" (
echo 🚀 Pushing commits and tags...
git push origin main
git push origin --tags
echo ✅ Successfully pushed to repository!
) else (
echo ⏩ Skipping push. Run manually: git push origin main ^&^& git push origin --tags
)
echo.
echo 🎉 Deployment process completed!
echo.
echo 📋 Next steps:
echo 1. Create a GitHub release from the v2.0.0 tag
echo 2. Upload the files from dist/ folder to the release
echo 3. Add release notes from RELEASE_NOTES.md
echo 4. Announce the enhanced version to users
echo.
echo 📁 Release files ready in dist/:
dir dist\
pause