Skip to content

Commit

Permalink
make: add reploy target
Browse files Browse the repository at this point in the history
  • Loading branch information
shalzz committed Apr 23, 2018
1 parent 2c2aaa1 commit 3885189
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ deploy: check-env
git push && git push --tags
git checkout dev

redeploy: check-env
git checkout dev
git push
git checkout master
git merge dev --no-edit
git tag -d $(TAG)
git push origin :refs/tags/$(TAG)
git tag -a $(TAG)
git push && git push --tags
git checkout dev

check-env:
ifndef TAG
$(error TAG is undefined)
Expand Down

0 comments on commit 3885189

Please sign in to comment.