From b58728237f0efb3822548e367ab0486ec492f873 Mon Sep 17 00:00:00 2001 From: Sunrise Date: Sat, 4 May 2024 20:39:27 +0800 Subject: [PATCH] Update Build for release.yml --- .github/workflows/Build for release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Build for release.yml b/.github/workflows/Build for release.yml index 1146161..b465163 100644 --- a/.github/workflows/Build for release.yml +++ b/.github/workflows/Build for release.yml @@ -197,20 +197,18 @@ jobs: $FILE_NAME = "${{ env.Executable }}-$VERSION-windows-x86_64-msvc" Add-Content -Path $env:GITHUB_OUTPUT -Value "FILE_NAME=$FILE_NAME" Write-Host "Generated file name: $FILE_NAME" - - - name: Collect assets - run: | mv "bin/${{ env.Executable }}.exe" . - $sourcePath = "${{ env.Executable }}.exe", "LICENSE", "README.md", "README_zh.md" - $destinationPath = "${{ steps.get_name.outputs.FILE_NAME }}.zip" - Compress-Archive -CompressionLevel "Optimal" -Path $sourcePath -DestinationPath $destinationPath - name: Upload artifact uses: actions/upload-artifact@v4 id: upload with: name: ${{ steps.get_name.outputs.FILE_NAME }} - path: ${{ steps.get_name.outputs.FILE_NAME }}.zip + path: | + ${{ env.Executable }}.exe + LICENSE + README.md + README_zh.md retention-days: 31 compression-level: 9