mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
No commits in common. "713dee231db84adc9c2c32f30276ab024b495dbd" and "50f9ded9e720d29b0922028aa8796355a7918e27" have entirely different histories.
713dee231d
...
50f9ded9e7
2 changed files with 11 additions and 23 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"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