-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (86 loc) · 2.24 KB
/
release.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up env
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install node dependencies
run: npm ci
- name: Build Linux
run: make linux
- name: Archive
run: make archives PLATFORM=linux VERSION=$VERSION
- name: Linux Release
run: make linux-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up env
shell: bash
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install node dependencies
run: npm ci
- name: Build Windows
shell: bash
run: make windows
- name: Windows Release
shell: bash
run: make windows-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-macos:
name: Build MacOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# https://github.com/electron/forge/issues/2807
- name: Install python3-setuptools and bash
run: brew install python-setuptools bash
- name: Set up env
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install node dependencies
run: npm ci
- name: Build MacOS
run: make macos
- name: MacOS Release
run: make macos-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}