build(workflow): 更新打包路径为 docs 目录

- 修改 Windows 平台压缩命令,将 dist 替换为 docs
- 修改 Linux/macOS 平台打包命令,将 dist/ 替换为 docs/
This commit is contained in:
coolxitech
2025-12-13 13:18:48 +08:00
parent b77ae14d5c
commit 85c90fed50

View File

@@ -49,11 +49,11 @@ jobs:
# 3. 打包静态资源与可执行程序 (关键步骤) # 3. 打包静态资源与可执行程序 (关键步骤)
- name: Package Assets (Windows) - name: Package Assets (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: Compress-Archive -Path "${{ matrix.executable }}", "dist" -DestinationPath "${{ matrix.asset_name }}" run: Compress-Archive -Path "${{ matrix.executable }}", "docs" -DestinationPath "${{ matrix.asset_name }}"
- name: Package Assets (Linux/macOS) - name: Package Assets (Linux/macOS)
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-latest'
run: tar -czvf ${{ matrix.asset_name }} ${{ matrix.executable }} dist/ run: tar -czvf ${{ matrix.asset_name }} ${{ matrix.executable }} docs/
# 4. 上传到构建产物 (用于下一步 Release) # 4. 上传到构建产物 (用于下一步 Release)
- name: Upload Artifact - name: Upload Artifact