Add Makefile helper for making releases
This commit is contained in:
parent
08df147d60
commit
5c80f85346
10
Makefile
10
Makefile
|
@ -58,4 +58,12 @@ update-sexp-parser:
|
||||||
$(BIN) build --dev @update-sexp-parser --auto-promote
|
$(BIN) build --dev @update-sexp-parser --auto-promote
|
||||||
|
|
||||||
.PHONY: default install uninstall reinstall clean test doc
|
.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'
|
||||||
|
|
Loading…
Reference in New Issue