Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Commit

Permalink
wip github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jgermade committed Mar 22, 2017
1 parent e2e52d8 commit c474b59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ build: install
$(shell npm bin)/rollup src/http-node.js --format cjs --output http-node.js
$(shell npm bin)/rollup src/wrapper.js --format cjs --output wrapper.js

github.release: export RELEASE_URL=$(shell curl -I -X POST -H "Content-Type: application/json" "https://api.github.com/repos/kiltjs/http/releases?access_token=${GITHUB_TOKEN}" -d '{"tag_name": "v$(shell npm view spears version)", "target_commitish": "$(git_branch)", "name": "v$(shell npm view spears version)", "body": "", "draft": false, "prerelease": false}' -o /dev/null -w '%{url_effective}' )
github.release: export RELEASE_URL=$(shell curl -s -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${GITHUB_TOKEN}" \
-d '{"tag_name": "v$(shell npm view spears version)", "target_commitish": "$(git_branch)", "name": "v$(shell npm view spears version)", "body": "", "draft": false, "prerelease": false}' \
-o /dev/null -w '%{url_effective}' "https://api.github.com/repos/kiltjs/http/releases" )
github.release:
echo ${RELEASE_URL}
@echo ${RELEASE_URL}
@true

publish:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"test",
"tests"
]
}
}

0 comments on commit c474b59

Please sign in to comment.