-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (30 loc) · 779 Bytes
/
Copy pathbuild.yml
File metadata and controls
36 lines (30 loc) · 779 Bytes
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
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@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 19 # Adjust Node.js version as per your project
- name: Install dependencies
run: npm install
- 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@v2
with:
name: Electron-app
path: dist/*.exe