We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed259b commit cc9571dCopy full SHA for cc9571d
scripts/release.sh
@@ -6,13 +6,15 @@
6
7
set -e
8
9
-if [ $# -ne 1 ]; then
10
- echo "Usage: $0 <version>"
11
- echo "Example: $0 v1.0.0"
+if [ $# -ne 2 ]; then
+ echo "Usage: $0 <version> <origin>"
+ echo "Example: $0 v1.0.0 origin"
12
exit 1
13
fi
14
15
-VERSION=$1
+ORIGIN=$1
16
+VERSION=$2
17
+
18
19
# Validate version format (should start with v)
20
if [[ ! $VERSION =~ ^v ]]; then
@@ -32,8 +34,8 @@ fi
32
34
echo "Creating tag $VERSION..."
33
35
git tag "$VERSION"
36
-echo "Pushing tag to origin..."
-git push origin "$VERSION"
37
+echo "Pushing tag to $ORIGIN..."
38
+git push "$ORIGIN" "$VERSION"
39
40
echo "Release $VERSION created successfully!"
41
echo "GitHub Actions will now build and publish the release automatically."
0 commit comments