-
Notifications
You must be signed in to change notification settings - Fork 580
66 lines (54 loc) · 1.49 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/release
on: push
env:
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
platform: [mac, ubuntu, windows]
include:
- platform: mac
os: macos-latest
artifactPath: |
out/*.dmg
out/*.mac.zip.blockmap
out/latest-mac.yml
CSC_LINK: CSC_LINK_MAC
- platform: ubuntu
os: ubuntu-latest
artifactPath: |
out/*.AppImage
out/*.deb
out/latest-linux.yml
- platform: windows
os: windows-2019
artifactPath: |
out/*.exe
out/latest.yml
CSC_LINK: CSC_LINK_WIN
env:
CSC_LINK: ${{ secrets[matrix.CSC_LINK] }}
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 16.14.0
cache: "npm"
- name: Install dependencies
run: |
npm i -g [email protected]
npx lerna bootstrap
- name: Build App
run: npm run build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}
path: ${{ matrix.artifactPath }}