use createReadStream

This commit is contained in:
Gabor Greif
2023-01-31 20:27:15 +01:00
parent af306bddfe
commit f2899b4677
2 changed files with 5 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ async function upload_to_release(
return
}
const file_size = stat.size
const file_bytes = fs.readFileSync(file).toString('binary')
const file_bytes: any = fs.createReadStream(file)
// Check for duplicates.
const assets: RepoAssetsResp = await octokit.paginate(repoAssets, {