-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (46 loc) · 1.27 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
name: Build/release
on:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- main
jobs:
build-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install system dependencies
run: ./scripts/setup.sh
- name: Install Node dependencies
run: npm install
- name: Make (Linux)
run: npm run make -- --platform linux
- name: Make (Windows)
run: npm run make -- --platform win32
- name: Make (macOS)
run: npm run make -- --platform darwin
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
out/make/deb/x64/*.deb
out/make/rpm/x64/*.rpm
out/make/squirrel.windows/x64/*.exe
out/make/zip/darwin/x64/*.zip
- name: Create a release for new tags
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: |
out/make/deb/x64/*.deb
out/make/rpm/x64/*.rpm
out/make/squirrel.windows/x64/*.exe
out/make/zip/darwin/x64/*.zip