-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (44 loc) · 1.06 KB
/
release.yml
File metadata and controls
51 lines (44 loc) · 1.06 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build and Release
on:
release:
types: [created, published]
push:
tags:
- 'v*'
workflow_dispatch:
# Allows manual triggering of this workflow
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
script: npm run pack-linux
- os: windows-latest
script: npm run pack-win
- os: macos-latest
script: npm run pack-mac
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build for ${{ matrix.os }}
env:
CI: false
run: ${{ matrix.script }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: |
dist/*.dmg
dist/*.AppImage
dist/*.deb
dist/*.exe
dist/*.zip