From ebaa34081484e08d761d58c5561e59525544c9f3 Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Mon, 23 May 2022 20:35:49 +0200 Subject: [PATCH] e --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8dad0b5..7949ba3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -158,7 +158,7 @@ jobs: // do whatever filtering you want here, I'm just uploading all the files console.log('uploading', file); - if (fs.lstat(`./linux/${file}`).isDirectory()) { + if (fs.statSync(`./linux/${file}`).isDirectory()) { console.log("directory, skipping") } else { await github.repos.uploadReleaseAsset({ @@ -172,7 +172,7 @@ jobs: for (let file of await fs.readdir('windows')) { // do whatever filtering you want here, I'm just uploading all the files console.log('uploading', file); - if (fs.lstat(`./windows/${file}`).isDirectory()) { + if (fs.statSync(`./windows/${file}`).isDirectory()) { console.log("directory, skipping") } else { await github.repos.uploadReleaseAsset({ @@ -187,7 +187,7 @@ jobs: // do whatever filtering you want here, I'm just uploading all the files console.log('uploading', file); - if (fs.lstat(`./macos/${file}`).isDirectory()) { + if (fs.statSync(`./macos/${file}`).isDirectory()) { console.log("directory, skipping") } else { await github.repos.uploadReleaseAsset({