Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions build/source-release/prepareReleaseMaterials.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions build/source-release/template/vote-result.tpl
Original file line number Diff line number Diff line change
@@ -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!