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