Skip to content

Commit ef27d69

Browse files
committed
update goreleaser
1 parent 0f59341 commit ef27d69

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.goreleaser.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
77
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
88

9+
version: 2
10+
911
project_name: ps-http-sim
1012

1113
before:
@@ -88,3 +90,8 @@ changelog:
8890
exclude:
8991
- "^docs:"
9092
- "^test:"
93+
94+
announce:
95+
webhook:
96+
enabled: true
97+
endpoint_url: https://pkg.go.dev/fetch/github.com/mattrobenolt/{{ .ProjectName }}@{{ .Tag }}

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $(BIN):
2525
GO_INSTALL := env GOBIN=$(PWD)/$(BIN) go install -ldflags "-s -w" -trimpath
2626

2727
$(BIN)/goreleaser: Makefile | $(BIN)
28-
$(GO_INSTALL) github.com/goreleaser/goreleaser@v1.24.0
28+
$(GO_INSTALL) github.com/goreleaser/goreleaser/[email protected]
2929

3030
$(BIN)/$(app): main.go go.mod go.sum $(src) | $(BIN)
3131
$(GO_INSTALL) $(gomod)
@@ -51,9 +51,5 @@ run-mysql:
5151

5252
publish: $(BIN)/goreleaser
5353
$(BIN)/goreleaser release --clean $(GORELEASERFLAGS)
54-
$(MAKE) bump-godoc
5554

56-
bump-godoc:
57-
curl -XPOST https://pkg.go.dev/fetch/$(gomod)@$(shell jq -r .tag dist/metadata.json)
58-
59-
.PHONY: all clean clean-bin clean-dist run docker run-mysql publish bump-godoc
55+
.PHONY: all clean clean-bin clean-dist run docker run-mysql publish

0 commit comments

Comments
 (0)