~robertgzr/xap

cd89670a239eb1a907e886178ebe3bf1a051d941 — Robert Günzler 1 year, 6 months ago 6002bac
minor tweaks to release.mk
1 files changed, 6 insertions(+), 1 deletions(-)

M release.mk
M release.mk => release.mk +6 -1
@@ 20,12 20,17 @@ mk-release:
	$(MAKE) publish ARTIFACT=$(tarfile)

.PHONY: publish
publish: repo := $(PROJECT)
publish: repo ?= $(PROJECT)
publish: ARTIFACT ?= ""
publish:
ifeq ($(forge),git.sr.ht)
	hut git artifact upload $(ARTIFACT) --repo $(repo) --rev $(VERSION)
	@exit 0
endif
ifeq ($(forge),github.com)
	gh release create $(VERSION) $(ARTIFACT)
	@exit 0
endif
	@echo "Unknown forge: $(forge)" >&2
	@exit 0