From 9417bd97fdf293f469c38e726c169583638d5aa1 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 7 Sep 2020 05:16:47 -0700 Subject: [PATCH] target to release Signed-off-by: Rudi Grinberg --- Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 1c6d54d..633f05d 100644 --- a/Makefile +++ b/Makefile @@ -15,14 +15,9 @@ clean: REPO=../opam-repository PACKAGES=$(REPO)/packages -# until we have https://github.com/ocaml/opam-publish/issues/38 -pkg-%: - topkg opam pkg -n $* - mkdir -p $(PACKAGES)/$* - cp -r _build/$*.* $(PACKAGES)/$*/ - rm -f $(PACKAGES)/$*/$*.opam - cd $(PACKAGES) && git add $* - -PKGS=$(basename $(wildcard *.opam)) -opam-pkg: - $(MAKE) $(PKGS:%=pkg-%) +opam-release: + dune-release distrib --skip-build --skip-lint --skip-tests + # See https://github.com/ocamllabs/dune-release/issues/206 + DUNE_RELEASE_DELEGATE=github-dune-release-delegate dune-release publish distrib --verbose + dune-release opam pkg + dune-release opam submit