File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,10 @@ cross-build:
3939 GOOS=$$ os CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS ) -o dist/$(NAME ) -$$ os$$ EXT . ; \
4040 done
4141
42- # cross-build
43- release :
42+ release : cross-build
4443 git tag $(VERSION )
4544 git push origin $(VERSION )
4645 OWNER=$(OWNER ) NAME=$(NAME ) PAT=$(PAT ) VERSION=$(VERSION ) . hack/release.sh
47- # id=$(shell curl \
48- # -X POST \
49- # -u $(OWNER):$(PAT) \
50- # -H "Accept: application/vnd.github.v3+json" \
51- # https://api.github.com/repos/$(OWNER)/$(NAME)/releases \
52- # -d '{"tag_name":"$(VERSION)","generate_release_notes":true,"prerelease":false}' | jq -r .id) \
53- # upload_url=https://uploads.github.com/repos/$(OWNER)/$(NAME)/releases/$$id/assets; \
54- # for asset in dist/*; do \
55- # echo $$asset; \
56- # name=$(shell echo $asset | cut -c 6-); \
57- # curl -u $(OWNER):$(PAT) -H "Content-Type: application/x-binary" -X POST --data-binary "@$$asset" "$$upload_url?name=$$name"; \
58- # done
5946
6047.PHONY : deps
6148deps :
You can’t perform that action at this time.
0 commit comments