-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.18 KB
/
build.yml
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
name: Build/release
on: [push]
jobs:
build:
name: Building ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
if: "contains(github.event.head_commit.message, '#build')"
strategy:
matrix:
include:
- kind: linux
os: ubuntu-latest
platform: linux
- kind: windows
os: windows-latest
platform: win
- kind: mac
os: macos-latest
platform: osx
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Setup Node Environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build:${{ matrix.platform }} --publish=never
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}-build
path: |
dist/Packaged/*.exe
dist/Packaged/*.AppImage
dist/Packaged/*.deb
dist/Packaged/*.tar.gz
dist/Packaged/*.dmg
dist/Packaged/*.zip