Skip to content

Commit dca42b6

Browse files
committed
feat: add GitHub Actions workflow for electron app release
Closes #154
1 parent 9a2fc01 commit dca42b6

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [macos-latest, ubuntu-latest, windows-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Make
31+
run: npm run make
32+
33+
- name: Upload artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: release-${{ matrix.os }}
37+
path: out/make/**/*
38+
39+
publish:
40+
needs: release
41+
runs-on: ubuntu-latest
42+
permissions:
43+
contents: write
44+
45+
steps:
46+
- name: Download all artifacts
47+
uses: actions/download-artifact@v4
48+
with:
49+
path: artifacts
50+
51+
- name: Create Release
52+
uses: softprops/action-gh-release@v2
53+
with:
54+
files: artifacts/**/*
55+
generate_release_notes: true

0 commit comments

Comments
 (0)