From f33c25c0bfcb5a034037f036e9d3a1820610cbcd Mon Sep 17 00:00:00 2001 From: Skip Baney Date: Tue, 25 Oct 2022 11:26:19 -0500 Subject: [PATCH] ci: Add release make task (#1) --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index e1a963f..0e0b6ce 100644 --- a/Makefile +++ b/Makefile @@ -31,11 +31,20 @@ run: ## Run the extension install: ## Install the extension gh extension install . +.PHONY: release +release: ## Create a new GitHub release + git fetch --all --tags + @if ! command -v svu >/dev/null 2>&1; then echo "Unable to find svu!"; exit 1; fi + @if [[ "$$(svu next)" == "$$(svu current)" ]]; then echo "Nothing to release!" && exit 1; fi + gh release create "$$(svu next)" --generate-notes + ##@ Other .PHONY: setup setup: ## Bootstrap for local development + @if ! command -v gh >/dev/null 2>&1; then echo "Unable to find gh!"; exit 1; fi + @if ! command -v git >/dev/null 2>&1; then echo "Unable to find git!"; exit 1; fi git submodule update --init --recursive # Via https://www.thapaliya.com/en/writings/well-documented-makefiles/