修改github action

This commit is contained in:
xunbu
2025-08-21 16:23:23 +08:00
parent 79273f0ed1
commit 3c472a7089
3 changed files with 57 additions and 21 deletions

View File

@@ -42,16 +42,9 @@ jobs:
run: |
uv run pyinstaller lite.spec --noconfirm
# 第 7 步: 打包成 zip (使用通配符匹配版本号)
- name: Package executable into a zip file
run: |
$exeFile = Get-ChildItem -Path "dist" -Name "DocuTranslate-*-win.exe"
Compress-Archive -Path "dist/$exeFile" -DestinationPath "dist/DocuTranslate-Windows.zip"
shell: powershell
# 第 8 步: 上传构建产物
- name: Upload Windows build artifact
# 第 7 步: 上传 exe 文件作为构建产物
- name: Upload Windows executable
uses: actions/upload-artifact@v4
with:
name: DocuTranslate-Windows
path: dist/DocuTranslate-Windows.zip
path: dist/*.exe