Skip to content

更新 Run Build EXE.yml #4

更新 Run Build EXE.yml

更新 Run Build EXE.yml #4

Workflow file for this run

name: 构建 exe 文件
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build EXE
run: pyinstaller --onefile main.py -i thinking.ico
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: exe-output
path: dist/main.exe
if-no-files-found: ignore