From fcb5554d34e959cc23c752c5617d552e10f56a58 Mon Sep 17 00:00:00 2001 From: manusa Date: Sun, 2 Feb 2020 08:29:35 +0100 Subject: [PATCH] ci: debug upload errors --- utils/upload-artifact.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/upload-artifact.js b/utils/upload-artifact.js index 39ff2ca1..6b8cbd73 100755 --- a/utils/upload-artifact.js +++ b/utils/upload-artifact.js @@ -17,8 +17,7 @@ const uploadArtifact = () => { console.error('No version specified'); process.exit(1); } - const releaseId = childProcess.execSync(`curl https://api.github.com/repos/manusa/electronim/releases/tags/v${version} | jq -r ".id"`, - {stdio: 'inherit'}) + const releaseId = childProcess.execSync(`curl https://api.github.com/repos/manusa/electronim/releases/tags/v${version} | jq -r ".id"`) .toString('utf8').replace(/\\r?\\n/g, '').trim(); console.log(`Uploading ${artifactFileName} with version ${version} to release ${releaseId}`); const assetId = childProcess.execSync(`curl \\ @@ -26,8 +25,7 @@ const uploadArtifact = () => { -H "Content-Type: ${mimeType}" \\ --data-binary "@${path.join('dist', artifactFileName)}" \\ "https://uploads.github.com/repos/manusa/electronim/releases/${releaseId}/assets?name=${artifactFileName}" \\ - | jq -r ".id"`, - {stdio: 'inherit'}) + | jq -r ".id"`) .toString('utf8').replace(/\\r?\\n/g, '').trim(); if (!assetId) { console.error(`Error uploading artifact ${artifactFileName} to release ${releaseId}`);