Compare commits

...

7 commits

Author SHA1 Message Date
smartfrigde
713dee231d f 2022-05-23 21:52:10 +02:00
smartfrigde
c1e60574d4 ugh 2022-05-23 20:56:01 +02:00
smartfrigde
ebaa340814 e 2022-05-23 20:35:49 +02:00
smartfrigde
347916f582 fix 2022-05-23 20:09:10 +02:00
smartfrigde
eb94a4c4c9 fix 2022-05-23 19:43:00 +02:00
smartfrigde
7ca079025f it's getting late 2022-05-23 19:07:14 +02:00
smartfrigde
5d0c29c409 oop 2022-05-23 18:42:57 +02:00
2 changed files with 23 additions and 11 deletions

View file

@ -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,7 +157,9 @@ 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,
@ -170,10 +167,13 @@ jobs:
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,
@ -181,10 +181,14 @@ jobs:
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,
@ -192,3 +196,6 @@ jobs:
data: await fs.readFile(`./macos/${file}`)
});
}
}
env:
releaseTag: ${{ steps.vars.outputs.releaseTag }}

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///home/smartfridge/Documents/ArmCord/.github/workflows/build.yml"
}
}