-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (53 loc) · 1.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on:
- workflow_dispatch
- pull_request
jobs:
build_win:
name: Build for Windows
runs-on: windows-latest
timeout-minutes: 5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build app
run: yarn build:win
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: build-win
path: |
dist
!dist/win-unpacked
build_mac:
name: Build for Mac OS
runs-on: macos-latest
timeout-minutes: 10
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build app
run: yarn build:mac
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: build-mac
path: |
dist
!dist/mac