From 1e713df994bc50f34a1e3d34b284e3249888ead7 Mon Sep 17 00:00:00 2001 From: jared Date: Mon, 10 Jan 2022 13:05:56 +0800 Subject: [PATCH] update ci --- .github/workflows/windows.yml | 6 +++--- scripts/windows-publish.ps1 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index af5bd50..20726dd 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -109,14 +109,14 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ${{ steps.package.outputs.packageName }} - path: ${{ steps.package.outputs.packageName }}.zip + path: ${{ steps.package.outputs.packageName }} # tag 上传Release - name: uploadRelease if: startsWith(github.event.ref, 'refs/tags/') uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.package.outputs.packageName }} - asset_name: ${{ steps.package.outputs.packageName }} + file: ${{ steps.package.outputs.packageName }}.zip + asset_name: ${{ steps.package.outputs.packageName }}.zip tag: ${{ github.ref }} overwrite: true diff --git a/scripts/windows-publish.ps1 b/scripts/windows-publish.ps1 index 0ed43db..f485bcb 100644 --- a/scripts/windows-publish.ps1 +++ b/scripts/windows-publish.ps1 @@ -42,7 +42,7 @@ function Main() { $sdkDll="{0}Redist\{1}ucrt\DLLs\{2}\*.dll" -f $env:winSdkDir.Trim(),$env:winSdkVer.Trim(),$env:msvcArch Copy-Item $sdkDll $archiveName\ # 打包zip - # Compress-Archive -Path $archiveName $archiveName'.zip' + Compress-Archive -Path $archiveName $archiveName'.zip' } if (($null -eq $archiveName) -or ($null -eq $targetName)) {