Skip to content

Commit ec2b42d

Browse files
authored
add tagging make (#91)
* add tagging make * add phony to avoid conflict with file
1 parent 6106685 commit ec2b42d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,15 @@ prep-release:
8686
sed -i "s/$${OLD_VERSION}/$${NEW_VERSION}/" internal/cmd/client_version.go docs/config.toml
8787
touch docs/content/releases/$(NEW_VERSION).md
8888

89+
.PHONY: prep-release-docs
8990
prep-release-docs: prep-release cli-docs
9091

92+
.PHONY: tag
93+
tag:
94+
@echo "Tagging and pushing as v$(NEW_VERSION)"
95+
@echo -n "Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]
96+
git tag "v$(NEW_VERSION)"
97+
git push origin "v$(NEW_VERSION)"
98+
git tag "d$(NEW_VERSION)"
99+
git push origin "d$(NEW_VERSION)"
100+
@echo "Make release from tag "v$(NEW_VERSION)"

0 commit comments

Comments
 (0)