mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
build(workflow): 更新打包路径为 docs 目录
- 修改 Windows 平台压缩命令,将 dist 替换为 docs - 修改 Linux/macOS 平台打包命令,将 dist/ 替换为 docs/
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -49,11 +49,11 @@ jobs:
|
||||
# 3. 打包静态资源与可执行程序 (关键步骤)
|
||||
- name: Package Assets (Windows)
|
||||
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)
|
||||
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)
|
||||
- name: Upload Artifact
|
||||
|
||||
Reference in New Issue
Block a user