-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-release.sh
More file actions
54 lines (47 loc) · 1.62 KB
/
quick-release.sh
File metadata and controls
54 lines (47 loc) · 1.62 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
#!/bin/bash
# Quick Release Script for Linux/WSL
# Usage: ./quick-release.sh 1.0.1
VERSION=${1:-"1.0.0"}
echo "=========================================="
echo "DMINLauncher Quick Release v$VERSION"
echo "=========================================="
echo ""
# Update version in csproj
echo "[1/5] Updating version numbers..."
sed -i "s/<Version>.*<\/Version>/<Version>$VERSION<\/Version>/g" DMINLauncher.csproj
sed -i "s/<AssemblyVersion>.*<\/AssemblyVersion>/<AssemblyVersion>$VERSION<\/AssemblyVersion>/g" DMINLauncher.csproj
sed -i "s/<FileVersion>.*<\/FileVersion>/<FileVersion>$VERSION<\/FileVersion>/g" DMINLauncher.csproj
sed -i "s/<InformationalVersion>.*<\/InformationalVersion>/<InformationalVersion>$VERSION<\/InformationalVersion>/g" DMINLauncher.csproj
# Commit changes
echo ""
echo "[2/5] Committing changes..."
git add .
git commit -m "Release v$VERSION"
# Push to master
echo ""
echo "[3/5] Pushing to master branch..."
git push origin master
# Create and push tag
echo ""
echo "[4/5] Creating and pushing tag v$VERSION..."
git tag "v$VERSION" -m "Release v$VERSION"
git push origin "v$VERSION"
# Done
echo ""
echo "[5/5] Done!"
echo ""
echo "=========================================="
echo "✓ Release v$VERSION initiated!"
echo "=========================================="
echo ""
echo "GitHub Actions will now:"
echo " 1. Build Windows and Linux binaries"
echo " 2. Create GitHub release"
echo " 3. Upload release assets"
echo ""
echo "Monitor progress at:"
echo "https://github.com/RobG66/DMINLauncher/actions"
echo ""
echo "Release will appear at:"
echo "https://github.com/RobG66/DMINLauncher/releases/tag/v$VERSION"
echo ""