Skip to content

Commit

Permalink
Adds release target into Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-majlis committed Jun 27, 2019
1 parent f87bb72 commit 52a3714
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ pypi-html:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

release:
if [ "x$(MSG)" = "x" -o "x$(VERSION)" = "x" ]; then \
echo "Use make release MSG='some msg' VERSION='1.2.3'"; \
exit 1; \
fi; \
git tag $(VERSION) -m "$(MSG)"; \
git push --tags origin master

0 comments on commit 52a3714

Please sign in to comment.