From 0271ed4200958a0875fa24381efa689bfd7c52e5 Mon Sep 17 00:00:00 2001 From: MaxGenash Date: Mon, 7 Dec 2020 20:25:36 +0200 Subject: [PATCH] fix(stencil-release): fix uploading broken bundle archive to github --- lib/release/release.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/release/release.js b/lib/release/release.js index 4e2c9b48..427530a6 100644 --- a/lib/release/release.js +++ b/lib/release/release.js @@ -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}`);