Skip to content

Commit

Permalink
chore: add release target to makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Apr 22, 2024
1 parent b2c37d1 commit 84c4c54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ GOLANGCI_LINT=hack/bin/golangci-lint
GO_MOD_OUTDATED=hack/bin/go-mod-outdated
GOLIST=go list -f "{{ .Dir }}" -m

GORELEASER=hack/bin/goreleaser

export GO111MODULE=on
undefine GOARCH
undefine GOOS
Expand Down Expand Up @@ -129,3 +131,13 @@ test:
format: $(GOFUMPT) $(GOIMPORTS)
$(GOIMPORTS) -w ./
$(GOFUMPT) -w ./

$(GORELEASER):
cd ./hack; \
go build -v \
-o ./bin/goreleaser \
github.com/goreleaser/goreleaser

.PHONY: release
release: $(GORELEASER)
$(GORELEASER) release --clean

0 comments on commit 84c4c54

Please sign in to comment.