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
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
@ -121,6 +121,11 @@ jobs:
|
||||||
name: ArmCordLinux
|
name: ArmCordLinux
|
||||||
path: linux
|
path: linux
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ArmCordLinuxArm64
|
||||||
|
path: linux
|
||||||
|
|
||||||
- name: Get some values needed for the release
|
- name: Get some values needed for the release
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -130,7 +135,7 @@ jobs:
|
||||||
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: v3.0.6
|
tag_name: ${{ steps.vars.outputs.releaseTag }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
@ -157,45 +162,33 @@ jobs:
|
||||||
for (let file of await fs.readdir('linux')) {
|
for (let file of await fs.readdir('linux')) {
|
||||||
// do whatever filtering you want here, I'm just uploading all the files
|
// do whatever filtering you want here, I'm just uploading all the files
|
||||||
console.log('uploading', file);
|
console.log('uploading', file);
|
||||||
if (await fs.stat(`./linux/${file}`).isDirectory()) {
|
|
||||||
console.log("directory, skipping")
|
|
||||||
} else {
|
|
||||||
await github.repos.uploadReleaseAsset({
|
await github.repos.uploadReleaseAsset({
|
||||||
owner, repo,
|
owner, repo,
|
||||||
release_id: release.data.id,
|
release_id: release.data.id,
|
||||||
name: file,
|
name: file,
|
||||||
data: await fs.readFile(`./linux/${file}`)
|
data: await fs.readFile(`./linux/${file}`)
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (let file of await fs.readdir('windows')) {
|
for (let file of await fs.readdir('windows')) {
|
||||||
// do whatever filtering you want here, I'm just uploading all the files
|
// do whatever filtering you want here, I'm just uploading all the files
|
||||||
console.log('uploading', file);
|
console.log('uploading', file);
|
||||||
if (await fs.stat(`./windows/${file}`).isDirectory()) {
|
|
||||||
console.log("directory, skipping")
|
|
||||||
} else {
|
|
||||||
await github.repos.uploadReleaseAsset({
|
await github.repos.uploadReleaseAsset({
|
||||||
owner, repo,
|
owner, repo,
|
||||||
release_id: release.data.id,
|
release_id: release.data.id,
|
||||||
name: file,
|
name: file,
|
||||||
data: await fs.readFile(`./windows/${file}`)
|
data: await fs.readFile(`./windows/${file}`)
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (let file of await fs.readdir('macos')) {
|
for (let file of await fs.readdir('macos')) {
|
||||||
// do whatever filtering you want here, I'm just uploading all the files
|
// do whatever filtering you want here, I'm just uploading all the files
|
||||||
console.log('uploading', file);
|
console.log('uploading', file);
|
||||||
|
|
||||||
if (await fs.stat(`./macos/${file}`).isDirectory()) {
|
|
||||||
console.log("directory, skipping")
|
|
||||||
} else {
|
|
||||||
await github.repos.uploadReleaseAsset({
|
await github.repos.uploadReleaseAsset({
|
||||||
owner, repo,
|
owner, repo,
|
||||||
release_id: release.data.id,
|
release_id: release.data.id,
|
||||||
name: file,
|
name: file,
|
||||||
data: await fs.readFile(`./macos/${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