Add Makefile helper for making releases

This commit is contained in:
Rudi Grinberg 2018-03-14 23:02:45 +08:00
parent 08df147d60
commit 5c80f85346
1 changed files with 9 additions and 1 deletions

View File

@ -58,4 +58,12 @@ update-sexp-parser:
$(BIN) build --dev @update-sexp-parser --auto-promote
.PHONY: default install uninstall reinstall clean test doc
.PHONY: promote accept-corrections
.PHONY: promote accept-corrections opam-release
VERSION ?= $(shell git describe --tags --abbrev=0)
DIST_URI = https://github.com/ocaml/dune/releases/download/$(VERSION)/jbuilder-$(subst +,.,$(VERSION)).tbz
opam-release:
topkg distrib --skip-build --skip-lint --skip-tests
topkg publish distrib --verbose
topkg opam pkg --dist-uri='$DIST_URI'
topkg opam submit --dist-uri='$DIST_URI'