-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 859 Bytes
/
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
name: Build
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
release:
name: build and release electron app
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest ]
steps:
- name: Check out git repository
uses: actions/checkout@v3.0.0
- name: Install Node.js
uses: actions/setup-node@v3.0.0
with:
node-version: "16"
- name: Install Dependencies
run: npm install
- name: Build Electron App
run: npm run build&&npm run pack
- name: Cleanup Artifacts for Windows
shell: pwsh
run: |
npx rimraf "dist/!(*.exe)"
- name: release
uses: softprops/action-gh-release@v2
with:
files: "dist/**"
tag_name: ${{ steps.tag.outputs.tag }}