From 2524fd772a3eccc409bd354e138135251a3ae6f2 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sun, 18 Jun 2023 14:44:41 -0400 Subject: [PATCH] more convenience tools for releasing --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 3b098ea..bee3d51 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ build-alpine: # all: Format, check, build, and test the code # setup: Install build/test toolchain dependencies (e.g. gox) # lint: Run linters against source code +# bump-{major,minor,patch}: create a new semver git tag +# release-{major,minor,patch}: push a tagged release # format: Format the source files # build: Build the command(s) for target OS/arch combinations # install: Install the command(s) @@ -113,6 +115,18 @@ INSTALL_TARGETS := $(addprefix install-,$(CMDS)) all: debug setup dep format lint test bench build dist +release-major: bump-major + git push origin main --tags + git push github main --tags + +release-minor: bump-minor + git push origin main --tags + git push github main --tags + +release-patch: bump-patch + git push origin main --tags + git push github main --tags + setup: setup-dirs setup-build setup-format setup-lint setup-reports setup-bump