Fixes send file content instead of filename.

This commit is contained in:
Emmanuel Hadoux
2019-10-11 08:55:02 +01:00
committed by GitHub
parent 21dee7a996
commit 79d9bbba94
+1 -1
View File
@@ -26,7 +26,7 @@ async function run() {
url: uploadUrl, url: uploadUrl,
headers, headers,
name: assetName, name: assetName,
file: assetPath file: fs.readFileSync(assetPath)
}); });
// Get the browser_download_url for the uploaded release asset from the response // Get the browser_download_url for the uploaded release asset from the response