Skip to content

Commit 15b9974

Browse files
committed
feat(ci): package release as zip, exclude build artifacts
1 parent e323834 commit 15b9974

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}
@@ -68,4 +81,4 @@ jobs:
6881
draft: false
6982
prerelease: true
7083
overwrite_files: true
71-
files: build/bin/Release/*
84+
files: consolation-nightly.zip

0 commit comments

Comments
 (0)