diff --git a/gulpTasks/publishing.js b/gulpTasks/publishing.js index 9556f6467..0cdf199a7 100644 --- a/gulpTasks/publishing.js +++ b/gulpTasks/publishing.js @@ -87,14 +87,15 @@ gulp.task('upload-binaries', (cb) => { .then(() => { console.info('Appending checksums to release notes...', checksums); if (draft.body && checksums) { + const checksumRows = checksums.map((e) => { + const line = e.replace('\n', '').split(' '); + return `${line[1]} | \`${line[0]}\``; + }).join('\n'); got.patch(`https://api.github.com/repos/ethereum/mist/releases/${draft.id}?access_token=${GITHUB_TOKEN}`, { body: JSON.stringify({ tag_name: `v${version}`, // String manipulation to create a checksums table - body: String.concat('File | Checksum (SHA256)\n-- | --', checksums.map((e) => { - const line = e.replace('\n', '').split(' '); - return `${line[1]} | \`${line[0]}\``; - }).join('\n')) + body: `File | Checksum (SHA256)\n-- | -- \n${checksumRows}` }) }); }