From a16452c1394b10a6b6c1171f65d1c619b6435e7c Mon Sep 17 00:00:00 2001 From: jared Date: Fri, 15 Jan 2021 11:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E4=BA=8C=E6=AC=A1=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E3=80=82=20=E5=8E=BB=E6=8E=89=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E5=90=8E,=E4=BD=93=E7=A7=AF=E4=BB=8E20MB?= =?UTF-8?q?=E5=8F=98=E6=88=9060MB=E3=80=82=20=E7=9B=B8=E5=AF=B9=E6=9D=A5?= =?UTF-8?q?=E8=AF=B4=EF=BC=8C=E4=BD=93=E7=A7=AF=E5=8F=98=E5=A4=A7=E7=9A=84?= =?UTF-8?q?=E5=BD=B1=E5=93=8D=E6=AF=94=E8=A7=A3=E5=8E=8B=E7=BC=A9=E4=B8=A4?= =?UTF-8?q?=E6=AC=A1=E6=9B=B4=E5=A4=A7=E3=80=82=20=E6=B2=A1=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E5=8E=8B=E7=BC=A9=E7=AD=89=E7=BA=A7=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E6=97=B6=E5=85=88=E4=BA=8C=E6=AC=A1=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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 41d5cb6..d5f0482 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -108,15 +108,15 @@ jobs: # 上传artifacts - uses: actions/upload-artifact@v2 with: - name: ${{ steps.package.outputs.packageName }}.zip - path: ${{ steps.package.outputs.packageName }} + name: ${{ steps.package.outputs.packageName }} + path: ${{ steps.package.outputs.packageName }}.zip # 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 }}/ + 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 6be84b6..6bd5be7 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 || $null -eq $targetName) {