Skip to content

Commit 5ce9261

Browse files
committed
2 parents 0aa7143 + cfaf79a commit 5ce9261

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release-artifacts.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Upload executable files
4848
run: |
49-
Get-ChildItem -Path . -Filter '*.exe,*.zip' -Recurse | ForEach-Object {
49+
Get-ChildItem -Path . -Filter *.exe -Recurse | ForEach-Object {
5050
$fileName = $_.Name
5151
$hash = Get-FileHash -Path $_.Name -Algorithm SHA256
5252
$hashLine = "$($hash.Hash.ToLower()) $fileName"
@@ -56,3 +56,16 @@ jobs:
5656
gh release upload ${{ env.version }} SHA2-256SUMS --clobber
5757
env:
5858
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Upload zip file
61+
run: |
62+
Get-ChildItem -Path . -Filter *.zip -Recurse | ForEach-Object {
63+
$fileName = $_.Name
64+
$hash = Get-FileHash -Path $_.Name -Algorithm SHA256
65+
$hashLine = "$($hash.Hash.ToLower()) $fileName"
66+
Add-Content -Path "SHA2-256SUMS" -Value $hashLine
67+
gh release upload ${{ env.version }} $fileName --clobber
68+
}
69+
gh release upload ${{ env.version }} SHA2-256SUMS --clobber
70+
env:
71+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)