Skip to content

Commit

Permalink
github action rename gui name
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jun 26, 2024
1 parent 52efcbb commit c1da9fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
- name: 压缩构建产物
run: |
# 将发布目录中的文件压缩为 zip 文件
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/publish/win-x64/* -DestinationPath "MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip"
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/publish/win-x64/* -DestinationPath "MDrive-win-x64-gui-${{ github.event.release.tag_name }}.zip"
- name: 检查 ZIP 文件
run: |
echo "生成的 ZIP 文件:"
dir MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip
dir MDrive-win-x64-gui-${{ github.event.release.tag_name }}.zip
- name: 上传 ZIP 文件到 release
uses: actions/upload-release-asset@v1 # 使用最新稳定版本
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip"
asset_name: "MDrive-win-gui-x64-${{ github.event.release.tag_name }}.zip"
asset_path: "MDrive-win-x64-gui-${{ github.event.release.tag_name }}.zip"
asset_name: "MDrive-win-x64-gui-${{ github.event.release.tag_name }}.zip"
asset_content_type: application/zip
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
- name: 压缩构建产物
run: |
# 将发布目录中的文件压缩为 zip 文件
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/publish/win-x86/* -DestinationPath "MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip"
Compress-Archive -Path src/MDriveSync.Client.WinFormAPI/bin/Release/net8.0-windows/publish/win-x86/* -DestinationPath "MDrive-win-x86-gui-${{ github.event.release.tag_name }}.zip"
- name: 检查 ZIP 文件
run: |
echo "生成的 ZIP 文件:"
dir MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip
dir MDrive-win-x86-gui-${{ github.event.release.tag_name }}.zip
- name: 上传 ZIP 文件到 release
uses: actions/upload-release-asset@v1 # 使用最新稳定版本
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip"
asset_name: "MDrive-win-gui-x86-${{ github.event.release.tag_name }}.zip"
asset_path: "MDrive-win-x86-gui-${{ github.event.release.tag_name }}.zip"
asset_name: "MDrive-win-x86-gui-${{ github.event.release.tag_name }}.zip"
asset_content_type: application/zip

0 comments on commit c1da9fa

Please sign in to comment.