chore(build): 更新打包脚本包含文档目录

- 将 Windows 打包命令中的 dist 目录替换为 docs 目录
- 将 Linux/macOS 打包命令中的 dist/ 目录替换为 docs/ 目录
- 确保所有平台的打包流程统一使用 docs 目录
- 保持构建产物的一致性和完整性
- 避免因目录变更导致的打包遗漏问题
This commit is contained in:
coolxitech
2025-12-13 13:41:57 +08:00
parent 268c88a89c
commit 7307791314

View File

@@ -53,11 +53,11 @@ jobs:
- 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/
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4