Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@ -78,7 +78,7 @@ checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
version_template: "{{ if .Env.GORELEASER_CURRENT_TAG }}{{ .Env.GORELEASER_CURRENT_TAG }}{{ else }}{{ incpatch .Version }}-next{{ end }}"
changelog:
sort: asc
@ -186,7 +186,11 @@ build-cross: $(GORELEASER)
.PHONY: dist
dist:
ifeq ($(VERSION),canary)
GORELEASER_CURRENT_TAG=canary LDFLAGS='$(LDFLAGS)' $(GORELEASER) release --snapshot --clean
else
LDFLAGS='$(LDFLAGS)' $(GORELEASER) release --snapshot --clean
endif
.PHONY: fetch-dist
fetch-dist: