Update python-build-win.yml #3
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: windows-Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' # 指定 Python 版本 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
cd source code | |
pip install -r requirements.txt | |
- name: Build Python file | |
run: | | |
cd source code # 切换到包含XPMSL.py的文件夹 | |
pyinstaller --onefile XPMSL.py | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: compiled-app | |
path: dist/*.exe |