[CD] fixed get hash error

This commit is contained in:
Kingkor Roy Tirtho 2022-05-10 14:42:12 +06:00
parent cac5e74614
commit 71e6b1a859

View File

@ -43,14 +43,14 @@ jobs:
# Create Chocolatey Package
# setting the sha256 hash for new bundle
- run: |
Set-Variable -Name HASH -Value (Get-FileHash dist\**\spotube-*-windows-setup.exe).Hash
mv dist/**/spotube-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
Set-Variable -Name HASH -Value (Get-FileHash dist\Spotube-windows-x86_64-setup.exe).Hash
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
make VERSION=${{ steps.tag.outputs.tag }} choco
# Rename the artifacts
- run: |
mv dist/**/spotube.${{ steps.tag.outputs.tag }}.nupkg dist/Spotube-windows-x86_64.nupkg
mv dist/**/spotube-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
# Publish to Chocolatey Repository
- run: |