From b423e2e079a30cd54ade63da7880f9749c617877 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch Date: Tue, 19 Dec 2017 04:30:06 +0000 Subject: [PATCH] Autorelease --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index f04c6b6..5246127 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,15 @@ release: setup-release git push origin $(VERSION) goreleaser --rm-dist --parallelism 1 || (git tag -d $(VERSION) && git push --delete origin $(VERSION)) +autorelease: install + git add . && git diff --cached --exit-code || \ + ( \ + echo 'New data files found, updating...' \ + && git commit -m "Update data files" \ + && git push origin master \ + && $(MAKE) release VERSION=v1.0.$$(date +%s)\ + ) + data: rm -fr data mkdir data