This commit is contained in:
smartfrigde 2022-05-23 21:52:10 +02:00
parent c1e60574d4
commit 713dee231d

View file

@ -157,8 +157,7 @@ jobs:
for (let file of await fs.readdir('linux')) {
// do whatever filtering you want here, I'm just uploading all the files
console.log('uploading', file);
if (fs.stat(`./linux/${file}`).isDirectory()) {
if (await fs.stat(`./linux/${file}`).isDirectory()) {
console.log("directory, skipping")
} else {
await github.repos.uploadReleaseAsset({
@ -172,7 +171,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.stat(`./windows/${file}`).isDirectory()) {
if (await fs.stat(`./windows/${file}`).isDirectory()) {
console.log("directory, skipping")
} else {
await github.repos.uploadReleaseAsset({
@ -187,7 +186,7 @@ jobs:
// do whatever filtering you want here, I'm just uploading all the files
console.log('uploading', file);
if (fs.stat(`./macos/${file}`).isDirectory()) {
if (await fs.stat(`./macos/${file}`).isDirectory()) {
console.log("directory, skipping")
} else {
await github.repos.uploadReleaseAsset({