Skip to content

Commit

Permalink
Update to makefile release command
Browse files Browse the repository at this point in the history
  • Loading branch information
davesavic committed Aug 20, 2023
1 parent ac93efd commit 6497cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ release:
NEW_VERSION="v$$NEW_MAJOR.0.0"; \
elif [ "$(type)" = "minor" ]; then \
NEW_MINOR=$$(( $(MINOR) + 1 )); \
NEW_VERSION="$(MAJOR).$$NEW_MINOR.0"; \
NEW_VERSION="v$(MAJOR).$$NEW_MINOR.0"; \
elif [ "$(type)" = "patch" ]; then \
NEW_PATCH=$$(( $(PATCH) + 1 )); \
NEW_VERSION="$(MAJOR).$(MINOR).$$NEW_PATCH"; \
NEW_VERSION="v$(MAJOR).$(MINOR).$$NEW_PATCH"; \
else \
echo "Invalid release type. Use major, minor, or patch."; \
exit 1; \
fi; \
git tag -a $$NEW_VERSION -m "$(message)"; \
git push origin $$NEW_VERSION; \
goreleaser;
goreleaser --clean;

.PHONY: release

0 comments on commit 6497cbe

Please sign in to comment.