-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (35 loc) · 1.07 KB
/
pyInstaller.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
name: Package Application with Pyinstaller
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
architecture: 'x64'
cache: 'pip'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install req
run: pip install -r requirements.txt
- name: dl upx
run: python .github\getLatestUPX.py; 7z x upx.zip; mv upx-* upx;
- name: pack
run: pyinstaller --upx-dir upx AutoSubtitle.spec -y ; mv dist/AutoSubtitle.exe ./
- name: upload
uses: actions/upload-artifact@v3
with:
name: GUI
path: AutoSubtitle.exe
- name: release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "AutoSubtitle.exe"
draft: false