Skip to content

Commit

Permalink
ci: fix release script (#9107)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo authored Dec 11, 2024
1 parent 01effaa commit a67fbc9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const generateYml = platform => {
const files = fs.readdirSync(releaseDir).filter(file => regex.test(file));
const outputFileName = filenamesMapping[platform];

console.info(`Release content for ${platform}:`);
console.info(JSON.stringify(files, null, 2), '\n');

files.forEach(fileName => {
const filePath = path.join(releaseDir, fileName);
try {
Expand Down Expand Up @@ -66,7 +69,7 @@ const generateYml = platform => {
.join('') +
`releaseDate: ${yml.releaseDate}\n`;

fs.writeFileSync(outputFileName, ymlStr);
fs.writeFileSync(path.join(releaseDir, outputFileName), ymlStr);
};

generateYml('macos');
Expand Down

0 comments on commit a67fbc9

Please sign in to comment.