Skip to content

Commit

Permalink
Update release-artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirredbeard committed Oct 11, 2023
1 parent b432564 commit cfaf79a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Upload executable files
run: |
Get-ChildItem -Path . -Filter '*.exe,*.zip' -Recurse | ForEach-Object {
Get-ChildItem -Path . -Filter *.exe -Recurse | ForEach-Object {
$fileName = $_.Name
$hash = Get-FileHash -Path $_.Name -Algorithm SHA256
$hashLine = "$($hash.Hash.ToLower()) $fileName"
Expand All @@ -56,3 +56,16 @@ jobs:
gh release upload ${{ env.version }} SHA2-256SUMS --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload zip file
run: |
Get-ChildItem -Path . -Filter *.zip -Recurse | ForEach-Object {
$fileName = $_.Name
$hash = Get-FileHash -Path $_.Name -Algorithm SHA256
$hashLine = "$($hash.Hash.ToLower()) $fileName"
Add-Content -Path "SHA2-256SUMS" -Value $hashLine
gh release upload ${{ env.version }} $fileName --clobber
}
gh release upload ${{ env.version }} SHA2-256SUMS --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cfaf79a

Please sign in to comment.