Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
skttl authored Oct 15, 2024
1 parent f2c8be7 commit b9525fe
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,18 @@ jobs:
- name: Create ZIP of build output
shell: pwsh # Use PowerShell shell
run: |
Get-ChildItem .\build_output | where { $_.Name -notin @("Wox.Plugin.dll", "Wox.Infrastructure.dll", "PowerToys.Common.UI.dll", "PowerToys.ManagedCommon.dll", "PowerToys.Settings.UI.Lib.dll")} | Compress-Archive -DestinationPath "CanIUse.zip" -Update
$sourcePath = ".\build_output"
$zipPath = "CanIUse.zip"
# Get all files, including those in subdirectories, and filter out the unwanted files
Get-ChildItem $sourcePath -File -Recurse | Where-Object {
$_.Name -notin @("Wox.Plugin.dll", "Wox.Infrastructure.dll", "PowerToys.Common.UI.dll", "PowerToys.ManagedCommon.dll", "PowerToys.Settings.UI.Lib.dll")
} | ForEach-Object {
# Get the relative path of the file to preserve folder structure
$relativePath = $_.FullName.Substring($sourcePath.Length + 1)
# Use -Update with Compress-Archive to preserve folder structure
Compress-Archive -Path $_.FullName -DestinationPath $zipPath -Update -EntryName $relativePath
}
- name: Upload project artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit b9525fe

Please sign in to comment.