-
Notifications
You must be signed in to change notification settings - Fork 152
64 lines (61 loc) · 1.57 KB
/
ci-build.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
name: CI build
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Run yarn install
uses: borales/actions-yarn@v5
with:
dir: vue3
cmd: install
- name: Run yarn build
uses: borales/actions-yarn@v5
with:
dir: vue3
cmd: build
- run: |
pip install poetry
poetry config installer.parallel false
poetry config --list
poetry install
.\package_all.bat
# pip install pywebview
# pyinstaller --noconfirm --onefile --console --icon "./web/favicon.ico" --add-data "./module/*.exe;./module/" --add-data "./web;web/" --additional-hooks-dir=".\\hooks" "./ui_webview.py" --name "NsEmuTools-webview"
- uses: actions/upload-artifact@v4
with:
path: dist/NsEmuTools.exe
name: NsEmuTools
- uses: actions/upload-artifact@v4
with:
path: dist/NsEmuTools-console.exe
name: NsEmuTools-console
- uses: actions/upload-artifact@v4
with:
path: dist/NsEmuTools
name: NsEmuTools-dir
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
dist/*.exe
dist/*.7z