Skip to content

Commit c2e9032

Browse files
authored
add script release (#30)
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent a4098b5 commit c2e9032

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

create_tag.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# /bin/bash
2+
version=$1
3+
# Regex pattern for the valid strings
4+
regex="^v([0-9]+)\.([0-9]+)\.([0-9]+)(-(alpha|beta|rc)\.([0-9]+))?$"
5+
6+
if [[ $version =~ $regex ]]; then
7+
echo "Creating tag with: " $1
8+
git tag -a -s -u GPG_KEY_ID -m 'rabbitmq-amqp-dotnet-client $1' '$1' && git push && git push --tags
9+
echo "Tag created: " $1
10+
else
11+
echo "Invalid version" $1
12+
fi
13+

0 commit comments

Comments
 (0)