fix: 更新开场白匹配逻辑以支持多个匹配条件 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |