-
-
Notifications
You must be signed in to change notification settings - Fork 495
62 lines (59 loc) · 1.52 KB
/
main.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
name: Build
on:
push:
branches:
- 'master'
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- README.md
jobs:
renderer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn --frozen-lockfile
working-directory: ./renderer
- run: yarn make-index-files
working-directory: ./renderer
- run: yarn lint
working-directory: ./renderer
- run: yarn build
working-directory: ./renderer
- uses: actions/upload-artifact@v3
with:
name: renderer-dist
path: ./renderer/dist
retention-days: 1
package:
needs: renderer
strategy:
matrix:
os: [windows-2019, ubuntu-20.04, macos-11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/download-artifact@v3
with:
name: renderer-dist
path: ./renderer/dist
- run: yarn --frozen-lockfile
working-directory: ./main
- run: yarn build
working-directory: ./main
- run: yarn package -p onTagOrDraft
working-directory: ./main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Hash
if: ${{ startsWith(matrix.os, 'windows') }}
run: type .\main\dist\latest.yml
- name: Hash
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: cat ./main/dist/latest-linux.yml
- name: Hash
if: ${{ startsWith(matrix.os, 'macos') }}
run: cat ./main/dist/latest-mac.yml