From b237220a8bb84918bae166ed523993c51f7ef595 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:23:18 +1100 Subject: [PATCH] build: add tag_release script --- scripts/tag_release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/tag_release.sh diff --git a/scripts/tag_release.sh b/scripts/tag_release.sh new file mode 100755 index 0000000..8ea0e09 --- /dev/null +++ b/scripts/tag_release.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [[ ! $1 =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Tag must match v1.2.3" + exit 1 +fi + +git tag $1 +git push origin $1