diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40a30e0..eecd466 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -121,11 +121,6 @@ jobs: name: ArmCordLinux path: linux - - uses: actions/download-artifact@v2 - with: - name: ArmCordLinuxArm64 - path: linux - - name: Get some values needed for the release id: vars shell: bash @@ -135,7 +130,7 @@ jobs: - uses: dev-drprasad/delete-tag-and-release@v0.2.0 with: delete_release: true - tag_name: ${{ steps.vars.outputs.releaseTag }} + tag_name: v3.0.6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release @@ -162,33 +157,45 @@ 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 (await fs.stat(`./linux/${file}`).isDirectory()) { + console.log("directory, skipping") + } else { await github.repos.uploadReleaseAsset({ owner, repo, release_id: release.data.id, name: file, data: await fs.readFile(`./linux/${file}`) - }); + }); + } } 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 (await fs.stat(`./windows/${file}`).isDirectory()) { + console.log("directory, skipping") + } else { await github.repos.uploadReleaseAsset({ owner, repo, release_id: release.data.id, name: file, data: await fs.readFile(`./windows/${file}`) - }); + }); + } } for (let file of await fs.readdir('macos')) { // do whatever filtering you want here, I'm just uploading all the files console.log('uploading', file); + if (await fs.stat(`./macos/${file}`).isDirectory()) { + console.log("directory, skipping") + } else { await github.repos.uploadReleaseAsset({ owner, repo, release_id: release.data.id, name: file, data: await fs.readFile(`./macos/${file}`) - }); + }); + } } + env: + releaseTag: ${{ steps.vars.outputs.releaseTag }} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..82f010b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/github-workflow.json": "file:///home/smartfridge/Documents/ArmCord/.github/workflows/build.yml" + } +} \ No newline at end of file