Try providing the serialization as an attachment name

This commit is contained in:
Oliver 2025-11-17 21:59:50 -07:00
parent 5e0028cdd6
commit 41d3541c4b

View file

@ -13,7 +13,9 @@ async function uploadFile(releaseID, localPath, remoteName = undefined) {
const stream = createReadStream(localPath);
return axios.post(
`${API}/repos/${REPO}/releases/${releaseID}/assets`,
stream,
{
attachment: stream,
},
{
headers: {
Authorization: `token ${TOKEN}`,
@ -57,6 +59,8 @@ async function main() {
} catch {
console.error(`Failed to delete draft release`);
};
process.exit(1);
};
};