Skip to content

Commit

Permalink
fix(stencil-release): fix uploading broken bundle archive to github
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGenash committed Dec 8, 2020
1 parent e6dfbc3 commit 0271ed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/release/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ async function createGithubRelease(commit, version, changelog, remote, bundlePat
const release = await github.repos.createRelease(releaseParams);
const themeName = await themeConfigManager.getName();

console.log('Uploading Bundle File...');

const zipFile = await fs.promises.readFile(bundlePath);
const uploadParams = {
release_id: release.data.id,
owner: remote.owner,
repo: remote.repo,
data: bundlePath,
data: zipFile,
name: `${themeName}-${version}.zip`,
};

console.log('Uploading Bundle File...');

const asset = await github.repos.uploadReleaseAsset(uploadParams);

console.log(`Release url: ${release.data.html_url.green}`);
Expand Down

0 comments on commit 0271ed4

Please sign in to comment.