Skip to content

Commit f9c1a85

Browse files
add release make targets
1 parent 1f25373 commit f9c1a85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,15 @@ lint: --ensure-tools ## run linters
158158
.PHONY: fix
159159
fix: --ensure-tools ## fix issues found by linters
160160
golangci-lint run --fix ./...
161+
162+
delete-tag: ## deletes a tag from git locally and upstream
163+
@read -p "Version: " tag; \
164+
git tag -d $$tag; \
165+
git push origin :$$tag
166+
167+
release-vsn: # tags and pushes a new release
168+
@read -p "Version: " tag; \
169+
git checkout master; \
170+
git pull --rebase; \
171+
git tag -a $$tag -m "new release"; \
172+
git push origin $$tag

0 commit comments

Comments
 (0)