File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,14 +50,27 @@ jobs:
5050 Copy-Item $source -Destination $dest -Recurse -Force
5151 shell : pwsh
5252
53+ - name : Package release zip
54+ run : |
55+ $releaseDir = "${{ github.workspace }}\build\bin\Release"
56+ $zipPath = "${{ github.workspace }}\consolation-nightly.zip"
57+
58+ # grab only the files we actually want to ship
59+ $files = Get-ChildItem -Path $releaseDir -File |
60+ Where-Object { $_.Extension -notin @('.lib', '.pdb', '.exp') }
61+
62+ Compress-Archive -Path $files.FullName -DestinationPath $zipPath -Force
63+ Write-Host "Created $zipPath with $($files.Count) files"
64+ shell : pwsh
65+
5366 - name : Get short commit hash
5467 id : shortsha
5568 run : |
5669 $short = $env:GITHUB_SHA.Substring(0, 7)
5770 Write-Output "short_sha=$short" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
5871 shell : pwsh
5972
60- - name : Create/Update Nightly Release and upload files
73+ - name : Create/Update Nightly Release and upload zip
6174 uses : softprops/action-gh-release@v2
6275 env :
6376 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6881 draft : false
6982 prerelease : true
7083 overwrite_files : true
71- files : build/bin/Release/*
84+ files : consolation-nightly.zip
You can’t perform that action at this time.
0 commit comments