Skip to content

Commit 686b7a8

Browse files
authored
Update build.yml
1 parent 28198ba commit 686b7a8

1 file changed

Lines changed: 20 additions & 29 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
{
2-
"name": "two-sites-viewer",
3-
"version": "1.0.2",
4-
"description": "Electron app: single window with two stacked websites (with logging + live config)",
5-
"main": "main.js",
6-
"private": true,
7-
"type": "module",
8-
"scripts": {
9-
"start": "electron .",
10-
"build:win": "electron-builder --win portable"
11-
},
12-
"devDependencies": {
13-
"electron": "^31.0.0",
14-
"electron-builder": "^24.13.3"
15-
},
16-
"build": {
17-
"appId": "com.example.twositesviewer",
18-
"productName": "Two Sites Viewer",
19-
"files": [
20-
"main.js",
21-
"preload.js",
22-
"config.json",
23-
"package.json"
24-
],
25-
"win": {
26-
"target": ["portable"]
27-
}
28-
}
29-
}
1+
name: build-windows-portable
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [ main ]
6+
jobs:
7+
build:
8+
runs-on: windows-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20'
14+
- run: npm install --no-audit --no-fund
15+
- run: npx electron-builder --win portable
16+
- name: Upload artifact
17+
uses: actions/upload-artifact@v4
18+
with:
19+
name: Two-Sites-Viewer-Portable
20+
path: dist/*.exe

0 commit comments

Comments
 (0)