-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.13 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build Electron App
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
# Define the platforms you want to build for
os: [windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Python for node-gyp
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python distutils (if needed)
shell: pwsh
run: |
python -m ensurepip --upgrade
python -m pip install --upgrade setuptools
- name: Install dependencies and rebuild
run: |
cd nodejs/sender-monitor
npm install
npx electron-rebuild
- name: Build Electron App
run: |
cd nodejs/sender-monitor
npm run package
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: OWD-Utils
path: nodejs/sender-monitor/dist