Update build.yml

This commit is contained in:
Jose Stovall 2022-06-07 09:36:49 -05:00 • committed by GitHub
commit 8d8d7dbe2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,13 +56,13 @@ jobs:
console.log('created release', { release });
for (let file of await fs.readdir('./dist')) {
console.log('uploading', file);
console.log('uploading', `./dist/${file}`);
await github.repos.uploadReleaseAsset({
owner, repo,
release_id: release.data.id,
name: file,
data: await fs.readFile(`./${file}`)
data: await fs.readFile(`./dist/${file}`)
});
}