mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
7 commits
50f9ded9e7
...
713dee231d
Author | SHA1 | Date | |
---|---|---|---|
|
713dee231d | ||
|
c1e60574d4 | ||
|
ebaa340814 | ||
|
347916f582 | ||
|
eb94a4c4c9 | ||
|
7ca079025f | ||
|
5d0c29c409 |
2 changed files with 23 additions and 11 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"yaml.schemas": {
|
||||
"https://json.schemastore.org/github-workflow.json": "file:///home/smartfridge/Documents/ArmCord/.github/workflows/build.yml"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue