-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (42 loc) · 1.35 KB
/
build.yml
File metadata and controls
53 lines (42 loc) · 1.35 KB
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
name: Build Windows
on:
push:
paths-ignore:
- '**.md'
- '.gitignore'
jobs:
release:
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
- name: Get version
id: getversion
run: echo "::set-output name=v::$(node -p "require('./package.json').version")"
- name: Display version
run: echo ${{ steps.getversion.outputs.v }}
- name: Install modules
run: npm i
- name: Build windows binary
run: npm run dist
- name: package to zip
uses: vimtor/action-zip@v1
with:
files: ./build/win-unpacked
dest: ./build/streamer-tools-client.zip
- name: Upload windows portable
uses: actions/upload-artifact@v2
with:
name: streamer-tools-client_win.zip
path: ./build/streamer-tools-client.zip
if-no-files-found: error
- name: Upload windows installer
uses: actions/upload-artifact@v2
with:
name: streamer-tools-client_win_installer.exe
path: ./build/streamer-tools-client Setup ${{ steps.getversion.outputs.v }}.exe
if-no-files-found: error