forked from drmobile11/obsidian-rain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
118 lines (100 loc) · 3.35 KB
/
deploy.sh
File metadata and controls
118 lines (100 loc) · 3.35 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
# Deployment Script for Make It Rain Enhanced v2.0.0
echo "🚀 Make It Rain Enhanced - Deployment Script"
echo "============================================="
# Check if git is available
if ! command -v git &> /dev/null; then
echo "❌ Git is not installed or not in PATH"
exit 1
fi
# Check if we're in a git repository
if [ ! -d ".git" ]; then
echo "❌ Not a git repository. Please run 'git init' first."
exit 1
fi
echo "📋 Current git status:"
git status --short
echo ""
echo "🔍 Checking for changes..."
if [ -z "$(git status --porcelain)" ]; then
echo "✅ Working directory is clean"
else
echo "📝 Found changes to commit:"
git status --short
echo ""
read -p "🤔 Do you want to commit these changes? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
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
Features:
- React-powered dashboard with modern UI components
- Responsive design for desktop, tablet, and mobile
- Full-screen modal popups for immersive bookmark viewing
- Collection tree view with icons and hierarchical organization
- MDX support for rich content rendering
- Real-time search and filtering
- Smooth animations and transitions
- Touch-optimized mobile interface
- Advanced keyboard navigation
- Modern card/list/grid layouts
Technical:
- Added React 18, Framer Motion, Tailwind CSS utilities
- TypeScript improvements with better type safety
- Modular component architecture
- Custom React hooks for state management
- Enhanced error handling and loading states
- Mobile-first responsive breakpoints
- Performance optimizations with virtual scrolling"
echo "✅ Changes committed successfully!"
else
echo "⏩ Skipping commit..."
fi
fi
echo ""
echo "🏷️ Creating release tag v2.0.0..."
if git tag -a "v2.0.0" -m "Release v2.0.0 - Enhanced Modern UI
Major release featuring:
- Complete UI overhaul with React components
- Mobile-responsive design
- MDX support for rich content
- Full-screen modal experience
- Advanced search and filtering
- Modern animations and interactions
Breaking Changes:
- Requires React dependencies
- New modern UI is opt-in via settings
- Updated minimum Obsidian version
Migration:
- Install new dependencies with npm install
- Enable 'Modern UI' in plugin settings
- Use 'Open Modern Raindrop Dashboard' command"; then
echo "✅ Tag v2.0.0 created successfully!"
else
echo "⚠️ Tag might already exist or creation failed"
fi
echo ""
echo "📤 Pushing to repository..."
read -p "🤔 Push to origin? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
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"
fi
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/:"
ls -la dist/