diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eecd466..40a30e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -121,6 +121,11 @@ 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 @@ -130,7 +135,7 @@ jobs: - uses: dev-drprasad/delete-tag-and-release@v0.2.0 with: delete_release: true - tag_name: v3.0.6 + tag_name: ${{ steps.vars.outputs.releaseTag }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release @@ -157,45 +162,33 @@ 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 deleted file mode 100644 index 82f010b..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "yaml.schemas": { - "https://json.schemastore.org/github-workflow.json": "file:///home/smartfridge/Documents/ArmCord/.github/workflows/build.yml" - } -} \ No newline at end of file