Skip to content

Commit

Permalink
Update Build for release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yanecc committed May 4, 2024
1 parent 281805d commit b587282
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/Build for release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b587282

Please sign in to comment.