-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (77 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
88
89
90
91
92
93
94
95
96
97
98
99
100
run-name: ${{ github.ref }} - ${{ github.actor }}
concurrency: 1
permissions:
contents: write
# Run this workflow whenever a tag that starts with v is pushed to github.
on:
push:
tags:
- "v*.*.*"
jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- name: Install required binaries
run: |
sudo apt update
sudo apt install -y libusb-1.0-0-dev libudev-dev rpm
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js & NPM
uses: actions/setup-node@v3
with:
node-version: '20.11.0'
- name: Install repo dependencies
run: yarn
- name: Make packages
run: yarn make
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: "true"
artifactErrorsFailBuild: "true"
generateReleaseNotes: "true"
prerelease: "true"
artifacts: "out/make/**/*.AppImage,out/make/**/*.deb,out/make/**/*.rpm,out/make/**/*.zip"
release-windows:
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js & NPM
uses: actions/setup-node@v3
with:
node-version: '20.11.0'
- name: Install repo dependencies
run: yarn
- name: Make packages
run: yarn make
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: "true"
artifactErrorsFailBuild: "true"
prerelease: "true"
artifacts: "out/make/**/*.exe"
release-macos:
runs-on: macos-latest
steps:
- name: Install required packages
run: pip install setuptools
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js & NPM
uses: actions/setup-node@v3
with:
node-version: '20.11.0'
- name: Install repo dependencies
run: yarn
- name: Make packages
run: yarn make
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: "true"
artifactErrorsFailBuild: "true"
prerelease: "true"
artifacts: "out/make/**/*.dmg"