File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11OWNER := dnitsch
22NAME := aws-cli-auth
3- VERSION := v0.7.0
3+ VERSION := v0.7.2
44REVISION := $(shell git rev-parse --short HEAD)
55
66
@@ -43,12 +43,18 @@ cross-build:
4343release : cross-build
4444 git tag $(VERSION )
4545 git push origin $(VERSION )
46- curl \
46+ id= $( curl \
4747 -X POST \
4848 -u $(OWNER ) :$(PAT ) \
4949 -H " Accept: application/vnd.github.v3+json" \
5050 https://api.github.com/repos/$(OWNER ) /$(NAME ) /releases \
51- -d ' {"tag_name":"$(VERSION)","generate_release_notes":true,"prerelease":false}'
51+ -d ' {"tag_name":"$(VERSION)","generate_release_notes":true,"prerelease":false}' | jq -r .id) \
52+ upload_url=https://uploads.github.com/repos/$(OWNER ) /$(NAME ) /releases/$$ id/assets; \
53+ for asset in dist/* ; do \
54+ echo $$ asset; \
55+ name=$(echo $$asset | cut -c 6- ) ; \
56+ curl -u $(OWNER ) :$(PAT ) -H " Content-Type: application/x-binary" -X POST --data-binary " @$$ asset" " $$ upload_url?name=$$ name" ; \
57+ done
5258
5359.PHONY : deps
5460deps :
You can’t perform that action at this time.
0 commit comments