From 8f3349dd3ef9670045f4b914229c0664cf6de5c3 Mon Sep 17 00:00:00 2001 From: Charles Sullivan Date: Wed, 30 Jun 2021 10:49:39 -0600 Subject: [PATCH] ci: Add a Makefile for the release process --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ce05ffe --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +.PHONY: help create-release-branch +SHELL := /bin/bash +.DEFAULT_GOAL := help + + +create-release-branch: ## Create release branch on main + git checkout dev + git pull + git checkout main + git pull + git checkout -b release-`date +%Y-%m-%d` + echo "Run `git merge origin/dev`. If you have conflicts, resolve them, then git push and create a PR" + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'