Skip to content

Commit

Permalink
add script release (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele Santomaggio <[email protected]>
  • Loading branch information
Gsantomaggio authored Jul 25, 2024
1 parent a4098b5 commit c2e9032
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions create_tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# /bin/bash
version=$1
# Regex pattern for the valid strings
regex="^v([0-9]+)\.([0-9]+)\.([0-9]+)(-(alpha|beta|rc)\.([0-9]+))?$"

if [[ $version =~ $regex ]]; then
echo "Creating tag with: " $1
git tag -a -s -u GPG_KEY_ID -m 'rabbitmq-amqp-dotnet-client $1' '$1' && git push && git push --tags
echo "Tag created: " $1
else
echo "Invalid version" $1
fi

0 comments on commit c2e9032

Please sign in to comment.