From f402b8f726d5c3550ae2d4efc45d9b3d95e1bef0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 11 Nov 2016 17:56:54 +0000 Subject: [PATCH] Releasing: automate more Only manual operation is editing the source - even that could be automated but meh. --- Makefile.release | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.release b/Makefile.release index 2e8ecd6cd..f58fae00c 100644 --- a/Makefile.release +++ b/Makefile.release @@ -20,21 +20,28 @@ # * Get an access token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ # * export GITHUB_ACCESS_TOKEN= # * Up the version in coremain/version.go -# * Commit -am'releasing # * Run: make -f Makefile.release +# * will commit your change with 'Release $VERSION' +# * push to github +# * build the release and do all that fluff. NAME=coredns VERSION:=$(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"') ARCH=$(shell uname -m) GITHUB=miekg -all: push build release +all: commit push build release .PHONY: push push: @echo Pushing release to master git push +.PHONY: commit +commit: + @echo Committing + git commit -am"Release $(VERSION)" + .PHONY: build build: @echo Releasing: $(VERSION)