Skip to content

Commit

Permalink
Correct some parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Jun 15, 2021
1 parent 2c39f8f commit af20040
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,40 +120,39 @@ jobs:
version: tagName,
});
const release = await github.repos.getReleaseByTag({
const { uploadUrl } = await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tagName,
});
const uploadUrl = release.upload_url;
const uploadAsset = require('./.github/custom-scripts/upload-asset');
await uploadAsset({
github,
assetName: 'Branch.zip',
path: 'framework/Branch.zip',
content-type: 'application/zip',
contentType: 'application/zip',
uploadUrl,
});
await uploadAsset({
github,
assetName: 'Branch_static.zip',
path: 'static-framework/Branch.zip',
content-type: 'application/zip',
contentType: 'application/zip',
uploadUrl,
});
await uploadAsset({
github,
assetName: 'checksum.txt',
path: 'framework/checksum',
content-type: 'text/plain',
contentType: 'text/plain',
uploadUrl,
});
await uploadAsset({
github,
assetName: 'checksum_static.txt',
path: 'static-framework/checksum_static',
content-type: 'text/plain',
contentType: 'text/plain',
uploadUrl,
});
Expand Down

0 comments on commit af20040

Please sign in to comment.