Skip to content

Commit 25f6cfa

Browse files
committed
ci: update release.yml
1 parent ec7453c commit 25f6cfa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ jobs:
1515
- name: Create Zip Archive
1616
shell: pwsh
1717
run: |
18-
Compress-Archive -Path .\* -DestinationPath c-env-bootstrap.zip -Exclude ".git*", ".github*", "CODE_OF_CONDUCT.md", "SECURITY.md"
18+
$files = Get-ChildItem -Path . -Recurse -File |
19+
Where-Object {
20+
$_.FullName -notmatch '\\.git\\' -and
21+
$_.FullName -notmatch '\\.github\\' -and
22+
$_.Name -ne 'CODE_OF_CONDUCT.md' -and
23+
$_.Name -ne 'SECURITY.md'
24+
}
25+
26+
Compress-Archive -Path $files -DestinationPath c-env-bootstrap.zip
1927

2028
- name: Release
2129
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)