Skip to content

Commit be6b28e

Browse files
committed
fix: update makefile
1 parent 1248db1 commit be6b28e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ cross-build:
3838
GOOS=$$os CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$(NAME)-$$os$$EXT .; \
3939
done
4040

41+
release: cross-build
42+
git tag $(VERSION)
43+
git push origin $(VERSION)
44+
curl \
45+
-X POST \
46+
-H "Accept: application/vnd.github.v3+json" \
47+
https://api.github.com/repos/dnitsch/$(NAME)/releases \
48+
-d '{"tag_name":"$(VERSION)","generate_release_notes":true,"prerelease":false}'
49+
4150
.PHONY: deps
4251
deps:
4352
GO111MODULE=on go mod vendor

0 commit comments

Comments
 (0)