-
-
Notifications
You must be signed in to change notification settings - Fork 496
72 lines (68 loc) · 1.69 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
63
64
65
66
67
68
69
70
71
72
name: Build
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- 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
windows:
needs: renderer
runs-on: windows-2019
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
run: type .\main\dist\latest.yml
linux:
needs: renderer
runs-on: ubuntu-20.04
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
run: cat ./main/dist/latest-linux.yml