Skip to content

Commit 06d9389

Browse files
authored
Merge pull request #1 from 01xq/copilot/add-exe-download-workflow
Add GitHub Actions workflow to build and publish Windows exe
2 parents 22cff9a + e73f64b commit 06d9389

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '18'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build executable
28+
run: npm run make
29+
30+
- name: Upload artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: RazerBatteryTaskbar-Windows
34+
path: out/make/squirrel.windows/
35+
if-no-files-found: error

0 commit comments

Comments
 (0)