From 680b874fa00c9d26efa223726a7312978c4a16b6 Mon Sep 17 00:00:00 2001 From: peefy Date: Wed, 25 Oct 2023 14:42:53 +0800 Subject: [PATCH] chore: add tag scripts. --- makefile | 4 ++++ scripts/tag.sh | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 scripts/tag.sh diff --git a/makefile b/makefile index 3a5f442..b556a7e 100644 --- a/makefile +++ b/makefile @@ -74,3 +74,7 @@ dist: .PHONY: release release: lint dist scripts/release.sh v$(VERSION) + +.PHONY: tag +tag: + scripts/tag.sh v$(VERSION) diff --git a/scripts/tag.sh b/scripts/tag.sh new file mode 100644 index 0000000..a93f226 --- /dev/null +++ b/scripts/tag.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set -e +if [ "$1" == "" ]; then + echo usage: "$0 VERSION" +fi +git tag $1 +git push origin $1