Skip to content

Commit 4358e70

Browse files
committed
ci: fix release creation
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
1 parent 00b16bd commit 4358e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ jobs:
346346
const path = require('path');
347347
const fs = require('fs');
348348
const release_id = '${{ steps.create_release.outputs.id }}';
349-
for (let file of await fs.readdirSync('./artifact')) {
349+
for (let file of await fs.readdirSync('./')) {
350350
if (path.extname(file) === '.zip') {
351351
console.log('uploadReleaseAsset', file);
352352
await github.repos.uploadReleaseAsset({
353353
owner: context.repo.owner,
354354
repo: context.repo.repo,
355355
release_id: release_id,
356356
name: file,
357-
data: await fs.readFileSync(`./artifact/${file}`)
357+
data: await fs.readFileSync(`./${file}`)
358358
});
359359
}
360360
}

0 commit comments

Comments
 (0)