-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (43 loc) · 1.64 KB
/
python-publish.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
47
48
49
50
51
name: Package Application with Nuitka
on:
push:
branches: [ feature/nuitka-build ]
pull_request:
branches: [ feature/nuitka-build ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# Setup Python
- uses: actions/setup-python@v5
with:
python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
cache: 'pip' # caching pip dependencies
- run: pip install -r src/requirements.txt
# Build python script into a stand-alone exe
- uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: src/main.py
onefile: false
disable-console: true
standalone: true
enable-plugins: pyside6
windows-icon-from-ico: src/main.ico
- run: mkdir dist
- run: cp build/main.dist dist/windows
- run: cp src/google.source.rst dist/windows/google.source.rst
- run: cp src/google.target.rst dist/windows/google.target.rst
- run: cp src/deepl.source.rst dist/windows/deepl.source.rst
- run: cp src/deepl.target.rst dist/windows/deepl.target.rst
- run: cp src/youdao.source.rst dist/windows/youdao.source.rst
- run: cp src/youdao.target.rst dist/windows/youdao.target.rst
- run: cp src/youdao.source.rst dist/windows/openai.source.rst
- run: cp src/youdao.target.rst dist/windows/openai.target.rst
- run: cp src/cacert.pem dist/windows/cacert.pem
- uses: actions/upload-artifact@v4
with:
name: Action-Build
path: dist/windows