-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (31 loc) · 930 Bytes
/
build.yml
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
name: Build and Release Electron App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_on_win:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3 # Latest version
- name: Set up Node.js
uses: actions/setup-node@v3 # Latest version
with:
node-version: '19.x' # Use a version range for stability
- name: Install dependencies
run: |
npm ci # Clean install (recommended if using package-lock.json)
- name: Build Electron app for Windows
run: npm run electron:package:win
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Artifact
id: create_release
uses: actions/upload-artifact@v3 # Updated to v3
with:
name: Electron-app
path: dist/*.exe