Skip to content

Commit 4044983

Browse files
committed
feat: build artifacts
1 parent 85099ef commit 4044983

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/dist.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
include:
12+
- os: ubuntu-latest
13+
artifact-name: linux-dist
14+
- os: windows-latest
15+
artifact-name: windows-dist
16+
- os: macos-latest
17+
artifact-name: macos-dist
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 22
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build application
34+
run: npm run dist
35+
36+
- name: Upload build artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: ${{ matrix.artifact-name }}
40+
path: dist/

0 commit comments

Comments
 (0)