-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (38 loc) · 1.02 KB
/
build-win.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
name: Build and Release for Windows
on:
push:
branches:
- main
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Get Python Path
run: |
echo "PYTHON_PATH=$(where python | select -first 1)" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
echo "Python Path: $env:PYTHON_PATH"
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 17
- name: Install dependencies
run: npm install
- name: Build
run: npm run electron:build
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist_electron/*.exe
dist_electron/*.msi
dist_electron/*.zip
env:
GITHUB_TOKEN: ${{ secrets.ELECTRON_TEMPLATE_TOKEN }}