修改github action
This commit is contained in:
13
.github/workflows/build-windows.yml
vendored
13
.github/workflows/build-windows.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user