fixed the name finally

This commit is contained in:
Kingkor Roy Tirtho 2022-04-26 20:08:54 +06:00
parent 5da2184183
commit 0bd1e1580a

View File

@ -42,14 +42,14 @@ jobs:
# Create Chocolatey Package # Create Chocolatey Package
# setting the sha256 hash for new bundle # setting the sha256 hash for new bundle
- run: | - run: |
Set-Variable -Name HASH -Value (Get-FileHash dist\${{ steps.tag.outputs.tag }}\spotube-${{ steps.tag.outputs.tag }}+${{ steps.tag.outputs.tag }}-windows.exe).Hash Set-Variable -Name HASH -Value (Get-FileHash dist\${{ steps.tag.outputs.tag }}\spotube-${{ steps.tag.outputs.tag }}+${{ steps.tag.outputs.tag }}-windows-setup.exe).Hash
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
make VERSION=${{ steps.tag.outputs.tag }} choco make VERSION=${{ steps.tag.outputs.tag }} choco
# Rename the artifacts # Rename the artifacts
- run: | - run: |
Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube.${{ steps.tag.outputs.tag }}.nupkg -NewName Spotube-windows-x86_64.nupkg Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube.${{ steps.tag.outputs.tag }}.nupkg -NewName Spotube-windows-x86_64.nupkg
Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube-${{ steps.tag.outputs.tag }}+${{ steps.tag.outputs.tag }}-windows.exe Spotube-windows-x86_64-setup.exe Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube-${{ steps.tag.outputs.tag }}+${{ steps.tag.outputs.tag }}-windows-setup.exe Spotube-windows-x86_64-setup.exe
# Upload release binary # Upload release binary
- uses: meeDamian/github-release@2.0 - uses: meeDamian/github-release@2.0