Skip to content

Commit 46f57f5

Browse files
committed
Added tagging script for releases
1 parent ac5b18c commit 46f57f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tag.bash

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
git checkout main
4+
git pull origin main
5+
TAG="v$(go run cmd/bugout/main.go -v | awk '{print $3}')"
6+
read -r -p "Tag: $TAG -- tag and push (y/n)?" ACCEPT
7+
if [ "$ACCEPT" = "y" ]
8+
then
9+
echo "Tagging and pushing: $TAG..."
10+
git tag "$TAG"
11+
git push origin "$TAG"
12+
else
13+
echo "noop"
14+
fi

0 commit comments

Comments
 (0)