Fix a few bugs in release script

pull/36/head
Jay Kamat 6 years ago
parent 754e3784f7
commit d32e756b1a
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

@ -37,11 +37,12 @@ echo
make
mkdir -p dist
cd dist
echo "zipping files..."
zip "$TARGET_ZIP_NAME" -r ../css/
zip "dist/$TARGET_ZIP_NAME" -r css/
cd dist
if [ -z "${GH_TOKEN:-}" ]; then
echo "No GH_TOKEN provided, exiting"
@ -83,7 +84,7 @@ echo "Uploading release assets..."
curl -X POST "$UPLOAD_BASE/repos/$REPO_BASE/releases/$RELEASE_ID/assets?name=$TARGET_ZIP_NAME" \
-H "Authorization: token $GH_TOKEN" \
-H "Content-Type: application/zip" \
-d "@${TARGET_ZIP_NAME}" >/dev/null
--data-binary "@${TARGET_ZIP_NAME}" >/dev/null
echo
echo "Release created successfuly!"

Loading…
Cancel
Save