Skip to content

Commit 4bdc936

Browse files
committed
+ release script
1 parent f229f27 commit 4bdc936

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

release

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
if [ -z "$1" ]; then
4+
echo "Usage: ./release <version>"
5+
echo "Example: ./release 1.0.0"
6+
exit 1
7+
fi
8+
9+
VERSION=$1
10+
11+
echo "🔄 Updating version to $VERSION..."
12+
13+
# Update version in files.swift
14+
sed -i '' "s/version: \"[^\"]*\"/version: \"$VERSION\"/" Sources/files/files.swift
15+
16+
# Commit the change
17+
git add Sources/files/files.swift
18+
git commit -m "Bump version to $VERSION"
19+
20+
# Create git tag
21+
git tag "v$VERSION"
22+
23+
echo "📤 Pushing to GitHub..."
24+
25+
# Push commits and tags
26+
git push && git push --tags
27+
28+
echo ""
29+
echo "✅ Version $VERSION released!"
30+
echo "🏷️ Tag: v$VERSION"
31+
echo "🔗 GitHub: https://github.com/velocityzen/Files/releases/tag/v$VERSION"

0 commit comments

Comments
 (0)