mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
4 commits
713dee231d
...
a619bd50a2
Author | SHA1 | Date | |
---|---|---|---|
|
a619bd50a2 | ||
|
3fd9817d4f | ||
|
00ecd5ab46 | ||
|
9aaffec54d |
1 changed files with 11 additions and 20 deletions
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
|
@ -29,6 +29,8 @@ jobs:
|
||||||
run: npm run build && electron-builder --linux && electron-builder --arm64 --linux && electron-builder --armv7l --linux
|
run: npm run build && electron-builder --linux && electron-builder --arm64 --linux && electron-builder --armv7l --linux
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: List all files in the dist directory
|
||||||
|
run: ls -l dist
|
||||||
- name: Delete unpacked builds
|
- name: Delete unpacked builds
|
||||||
run: rm -rf dist/linux-unpacked && rm -rf dist/linux-arm64-unpacked && rm -rf dist/linux-armv7l-unpacked
|
run: rm -rf dist/linux-unpacked && rm -rf dist/linux-arm64-unpacked && rm -rf dist/linux-armv7l-unpacked
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
@ -59,6 +61,8 @@ jobs:
|
||||||
run: npm run build && electron-builder --macos
|
run: npm run build && electron-builder --macos
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: List all files in the dist directory
|
||||||
|
run: ls -l dist
|
||||||
- name: Delete unpacked builds
|
- name: Delete unpacked builds
|
||||||
run: rm -rf dist/macos-unpacked
|
run: rm -rf dist/macos-unpacked
|
||||||
|
|
||||||
|
@ -103,9 +107,6 @@ jobs:
|
||||||
needs: [build-linux, build-mac, build-windows]
|
needs: [build-linux, build-mac, build-windows]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ArmCordMac
|
name: ArmCordMac
|
||||||
|
@ -120,7 +121,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ArmCordLinux
|
name: ArmCordLinux
|
||||||
path: linux
|
path: linux
|
||||||
|
- name: ls
|
||||||
|
run: ls
|
||||||
|
- name: Delete unwanted directories
|
||||||
|
run: ls -d linux/*/ | xargs rm -rf && ls -d macos/*/ | xargs rm -rf && ls -d windows/*/ | xargs rm -rf
|
||||||
- name: Get some values needed for the release
|
- name: Get some values needed for the release
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -157,9 +161,6 @@ 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,
|
||||||
|
@ -167,13 +168,9 @@ jobs:
|
||||||
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,
|
||||||
|
@ -181,14 +178,9 @@ jobs:
|
||||||
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,
|
||||||
|
@ -196,6 +188,5 @@ jobs:
|
||||||
data: await fs.readFile(`./macos/${file}`)
|
data: await fs.readFile(`./macos/${file}`)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
env:
|
env:
|
||||||
releaseTag: ${{ steps.vars.outputs.releaseTag }}
|
releaseTag: ${{ steps.vars.outputs.releaseTag }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue