Skip to content

Commit 108a3c5

Browse files
authored
Merge pull request #5 from linkvite/fix-release
updated makefile
2 parents bbba3cb + c943a72 commit 108a3c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ release-major: check-clean
6666
@git add version.go
6767
@git commit -m "chore: bump version to $(NEW_VERSION)"
6868
@git tag -a v$(NEW_VERSION) -m "Release v$(NEW_VERSION)"
69-
@echo "Created tag v$(NEW_VERSION)"
70-
@echo "Run 'git push && git push --tags' to publish"
69+
@git push --follow-tags
70+
@echo "Published v$(NEW_VERSION)"
7171

7272
release-minor: check-clean
7373
@$(eval NEW_VERSION := $(MAJOR).$(shell echo $$(($(MINOR)+1))).0)
@@ -76,8 +76,8 @@ release-minor: check-clean
7676
@git add version.go
7777
@git commit -m "chore: bump version to $(NEW_VERSION)"
7878
@git tag -a v$(NEW_VERSION) -m "Release v$(NEW_VERSION)"
79-
@echo "Created tag v$(NEW_VERSION)"
80-
@echo "Run 'git push && git push --tags' to publish"
79+
@git push --follow-tags
80+
@echo "Published v$(NEW_VERSION)"
8181

8282
release-patch: check-clean
8383
@$(eval NEW_VERSION := $(MAJOR).$(MINOR).$(shell echo $$(($(PATCH)+1))))

0 commit comments

Comments
 (0)