Skip to content

Commit

Permalink
Corrected asset name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Jun 15, 2021
1 parent ad6c11f commit 5976a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/custom-scripts/upload-asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function uploadAsset({ github, assetName, path, contentType, uploadUrl })
const contentLength = fs.statSync(path).size;
const contents = fs.readFileSync(path);

await github.repos.uploadReleaseAsset({
const { data } = await github.repos.uploadReleaseAsset({
url: uploadUrl,
headers: {
'content-type': contentType,
Expand All @@ -13,6 +13,8 @@ async function uploadAsset({ github, assetName, path, contentType, uploadUrl })
name: assetName,
file: contents,
});

return data;
}

module.exports = uploadAsset;
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
});
await uploadAsset({
github,
assetName: 'Branch.zip',
assetName: 'checksum_static.txt',
path: 'static-framework/checksum_static',
content-type: 'text/plain',
uploadUrl,
Expand Down

0 comments on commit 5976a3c

Please sign in to comment.