Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
ed22774a93 | |||
8dfca953dc |
5
Makefile
5
Makefile
@@ -129,11 +129,10 @@ test:
|
|||||||
|
|
||||||
|
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
push-release:
|
push-release: build-all
|
||||||
@rm -f release.id
|
@rm -f release.id
|
||||||
# read personal access token from .git-credentials
|
# read personal access token from .git-credentials
|
||||||
TOKEN=$(shell cat .credentials)
|
TOKEN=$(shell cat .credentials)
|
||||||
# create the body of the release from latest tag
|
|
||||||
# create a new release based on current tag and get the release id
|
# create a new release based on current tag and get the release id
|
||||||
@curl -sSL -X POST \
|
@curl -sSL -X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
@@ -148,6 +147,6 @@ push-release:
|
|||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary @$$i \
|
--data-binary @$$i \
|
||||||
https://uploads.github.com/repos/metal3d/katenary/releases/$(shell cat release.id)/assets?name=$$(basename $$i)
|
https://uploads.github.com/repos/metal3d/katenary/releases/$$(cat release.id)/assets?name=$$(basename $$i)
|
||||||
done
|
done
|
||||||
@rm -f release.id
|
@rm -f release.id
|
||||||
|
Reference in New Issue
Block a user