Skip to content

Commit

Permalink
fix upload issue due to octokit/octokit.js#2087 (comment) (#121)
Browse files Browse the repository at this point in the history
* use await to ensure we wait for asset upload

* fix upload issue due to octokit/octokit.js#2087
  • Loading branch information
Zemnmez authored May 4, 2022
1 parent 939feeb commit 9a4c605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/artifacts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function main() {
repo: context.repo.repo,
release_id: (await release).data.id,
name,
data: (await fs.readFile(file)).toString('utf-8'),
// https://github.com/octokit/octokit.js/discussions/2087#discussioncomment-646569
data: (await fs.readFile(file)) as unknown as string,
})
)
);
Expand Down

0 comments on commit 9a4c605

Please sign in to comment.