From fb8fb34a84afcbea6ebea4a0490e2fc4bfb314d0 Mon Sep 17 00:00:00 2001 From: deluan Date: Tue, 3 Feb 2026 10:49:08 -0500 Subject: [PATCH] Add release target to Makefile for version tagging and pushing --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index bc3e511..db1d40d 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,12 @@ package: build clean: rm -f $(WASM_FILE) $(PLUGIN_NAME).ndp + +release: + @if [[ ! "${V}" =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X"; exit 1; fi + go mod tidy + @if [ -n "`git status -s`" ]; then echo "\n\nThere are pending changes. Please commit or stash first"; exit 1; fi + make pre-push + git tag v${V} + git push origin v${V} --no-verify +.PHONY: release