Skip to content

Commit

Permalink
Autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Dec 19, 2017
1 parent af5425c commit b423e2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b423e2e

Please sign in to comment.