Skip to content

Commit d5608f0

Browse files
committed
fix build.yml
1 parent 781e65a commit d5608f0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ name: Build Windows Executable
33
on:
44
push:
55
branches:
6-
- main # 触发工作流的分支
6+
- main # Trigger workflow on push to main branch
77

88
jobs:
99
build:
10-
runs-on: windows-latest # 使用 Windows 环境
10+
runs-on: windows-latest # Use Windows environment
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3 # 拉取代码
13+
uses: actions/checkout@v4 # Check out the repository
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v4 # 安装 Python
16+
uses: actions/setup-python@v3 # Set up Python
1717
with:
18-
python-version: '3.13' # 指定 Python 版本
18+
python-version: '3.13' # Specify Python version
1919

2020
- name: Install Poetry
2121
run: |
22-
pip install poetry # 安装 Poetry
22+
pip install poetry # Install Poetry
2323
2424
- name: Install dependencies
2525
run: |
26-
poetry install # 使用 Poetry 安装依赖
26+
poetry install # Install dependencies using Poetry
2727
2828
- name: Build executable
2929
run: |
30-
poetry run pyinstaller --onefile --name upload_images upload_all_images_in_markdown/main.py # 使用 Poetry 运行 PyInstaller 打包程序
30+
poetry run pyinstaller --onefile --name upload_images upload_all_images_in_markdown/main.py # Build the executable
3131
3232
- name: Upload artifact
33-
uses: actions/upload-artifact@v3 # 上传生成的 .exe 文件
33+
uses: actions/upload-artifact@v3 # Upload the generated .exe file
3434
with:
3535
name: upload-images.exe
3636
path: dist/upload-images.exe

0 commit comments

Comments
 (0)