diff --git a/build/source-release/prepareReleaseMaterials.js b/build/source-release/prepareReleaseMaterials.js index cb96d5e301..90c98fd729 100644 --- a/build/source-release/prepareReleaseMaterials.js +++ b/build/source-release/prepareReleaseMaterials.js @@ -82,6 +82,7 @@ console.log('[Release Commit] ' + releaseCommit); console.log('[Release Name] ' + releaseFullName); const voteTpl = fse.readFileSync(pathTool.join(__dirname, './template/vote-release.tpl'), 'utf-8'); +const voteResultTpl = fse.readFileSync(pathTool.join(__dirname, './template/vote-result.tpl'), 'utf-8'); const announceTpl = fse.readFileSync(pathTool.join(__dirname, './template/announce-release.tpl'), 'utf-8'); const voteUntil = new Date(+new Date() + (72 + 12) * 3600 * 1000); // 3.5 day. @@ -95,6 +96,14 @@ fse.writeFileSync( 'utf-8' ); +fse.ensureDirSync(outDir); +fse.writeFileSync( + pathTool.resolve(outDir, 'vote-result.txt'), + voteResultTpl.replace(/{{ECHARTS_RELEASE_VERSION}}/g, rcVersion) + .replace(/{{ECHARTS_RELEASE_VERSION_FULL_NAME}}/g, releaseFullName), + 'utf-8' +); + fse.writeFileSync( pathTool.resolve(outDir, 'announce.txt'), announceTpl.replace(/{{ECHARTS_RELEASE_VERSION}}/g, stableVersion) diff --git a/build/source-release/template/vote-result.tpl b/build/source-release/template/vote-result.tpl new file mode 100644 index 0000000000..4a92d738b2 --- /dev/null +++ b/build/source-release/template/vote-result.tpl @@ -0,0 +1,23 @@ +--- Mail To: --- +dev@echarts.apache.org +----------------------------------------------------------- + +--- Subject: --- +[RESULT] [VOTE] Release {{ECHARTS_RELEASE_VERSION_FULL_NAME}} +----------------------------------------------------------- + +Thanks to all who voted or provided comments! + +We received ______NUMBER_OF_+1_VOTES______ +1 votes from the PMC members, and the release has PASSED: + ++1 ______NAME______ (binding) + +Other votes from the community: + ++1 ______NAME______ + +Vote thread: +https://lists.apache.org/thread/xxx + +I'm going to release the source release of Apache ECharts {{ECHARTS_RELEASE_VERSION}}. +Thank you all for making this happen!