bb64 release v26
This commit is contained in:
parent
8b184a524f
commit
7081615a98
25
publish.sh
25
publish.sh
@ -76,15 +76,24 @@ if [ -z "$RELEASE_ID" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upload binaries
|
# Upload binaries and install.sh
|
||||||
for BIN in bb64.amd64 bb64.arm64; do
|
for FILE in bb64.amd64 bb64.arm64 install.sh; do
|
||||||
if [ -f "output/$BIN" ]; then
|
if [ -f "output/$FILE" ]; then
|
||||||
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$BIN" \
|
filetoupload="output/$FILE"
|
||||||
-H "Content-Type: application/octet-stream" \
|
elif [ -f "$FILE" ]; then
|
||||||
-H "Authorization: token $TOKEN" \
|
filetoupload="$FILE"
|
||||||
--data-binary @"output/$BIN"
|
else
|
||||||
echo "Uploaded $BIN to release $TAG."
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Auto-detect content type
|
||||||
|
ctype=$(file --mime-type -b "$filetoupload")
|
||||||
|
|
||||||
|
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$FILE" \
|
||||||
|
-H "Content-Type: $ctype" \
|
||||||
|
-H "Authorization: token $TOKEN" \
|
||||||
|
--data-binary @"$filetoupload"
|
||||||
|
echo "Uploaded $FILE to release $TAG as $ctype."
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries."
|
echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user