1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

specify release description

This commit is contained in:
Darien Raymond 2017-12-29 00:27:24 +01:00
parent b15f3374d3
commit 64859ff47b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -62,10 +62,10 @@ $GOPATH/bin/vbuild --os=freebsd --arch=amd64 --zip --sign #--encrypt
$GOPATH/bin/vbuild --os=openbsd --arch=x86 --zip --sign #--encrypt
$GOPATH/bin/vbuild --os=openbsd --arch=amd64 --zip --sign #--encrypt
#RELBODY=$(cat $GOPATH/bin/metadata.txt | jq -R -s -c .)
RELBODY="https://www.v2ray.com/chapter_00/01_versions.html"
JSON_DATA=$(echo "{}" | jq -c ".tag_name=\"${RELEASE_TAG}\"")
JSON_DATA=$(echo ${JSON_DATA} | jq -c ".prerelease=${PRERELEASE}")
#JSON_DATA=$(echo ${JSON_DATA} | jq -c ".body=${RELBODY}")
JSON_DATA=$(echo ${JSON_DATA} | jq -c ".body=${RELBODY}")
RELEASE_ID=$(curl --data "${JSON_DATA}" -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/v2ray/v2ray-core/releases | jq ".id")
function upload() {