File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 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"
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 }}
You can’t perform that action at this time.
0 commit comments