mirror of https://github.com/v2ray/v2ray-core
parent
7505be8bfc
commit
9a439fb084
|
@ -90,9 +90,10 @@ RELEASE_ID=$(curl --data "${JSON_DATA}" -H "Authorization: token ${GITHUB_TOKEN}
|
||||||
function uploadfile() {
|
function uploadfile() {
|
||||||
FILE=$1
|
FILE=$1
|
||||||
CTYPE=$(file -b --mime-type $FILE)
|
CTYPE=$(file -b --mime-type $FILE)
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: ${CTYPE}" --data-binary @$FILE "https://uploads.github.com/repos/v2ray/v2ray-core/releases/${RELEASE_ID}/assets?name=$(basename $FILE)"
|
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: ${CTYPE}" --data-binary @$FILE "https://uploads.github.com/repos/v2ray/v2ray-core/releases/${RELEASE_ID}/assets?name=$(basename $FILE)"
|
||||||
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function upload() {
|
function upload() {
|
||||||
|
|
Loading…
Reference in New Issue