Skip to content

Commit

Permalink
ci: separate node.js/electron deploy builds
Browse files Browse the repository at this point in the history
  • Loading branch information
almoghamdani committed Dec 28, 2022
1 parent f65cd5b commit 31c7a93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ jobs:
name: audify-${{ github.sha }}-release-${{ matrix.os }}-${{ matrix.arch }}
path: build/Release/

- name: Build + Deploy Audify Prebuilt Binaries
- name: Build + Deploy Audify Prebuilt Binaries (Node.js)
if: ${{ inputs.deploy }}
run: npm run build-binaries -- -- -- --arch ${{ matrix.arch }}
run: npm run build-binaries-node -- -- --arch ${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build + Deploy Audify Prebuilt Binaries (Electron)
if: ${{ inputs.deploy }}
run: npm run build-binaries-electron -- -- --arch ${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/deploy-build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build Prebuilt Binaries

on:
push:
tags:
- "v*"
release:
types: [published]

jobs:
deploy-build:
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"rebuild": "cmake-js compile",
"install": "prebuild-install || npm run rebuild",
"deploy": "np --yolo",
"build-binaries": "npm run build-binaries-node",
"postbuild-binaries": "npm run build-binaries-electron",
"build-binaries-node": "run-script-os",
"build-binaries-node:win32": "prebuild --backend cmake-js --include-regex \"^.*\\.(node|dylib|dll|so(\\.[0-9])?)$\" -t 12.11.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.3.0 -t 19.0.0 --verbose -u %GITHUB_TOKEN%",
"build-binaries-node:darwin:linux": "prebuild --backend cmake-js --include-regex \"^.*\\.(node|dylib|dll|so(\\.[0-9])?)$\" -t 12.11.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 --verbose -u $GITHUB_TOKEN",
Expand Down

0 comments on commit 31c7a93

Please sign in to comment.