Skip to content

Commit

Permalink
update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs committed Oct 30, 2024
1 parent d2c4576 commit a568390
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,9 @@ jobs:
- name: Calculate Checksum
id: checksum
run: |
Get-ChildItem -Path "D:\a\testkube\testkube" -File
Get-ChildItem -Path "D:\a\testkube\testkube\artifacts" -File
$installer_name = $env:MSI_NAME
$hash=Get-FileHash D:\a\testkube\testkube\artifacts\testkube.msi
$Env:MSI_PATH = "D:\a\testkube\testkube\artifacts\testkube.msi"
$hash=Get-FileHash $MSI_PATH
$hash.Hash + " " + $installer_name + ".msi" >> msi_checksum.txt
echo "::set-output name=INSTALLER_NAME::${installer_name}"
Expand All @@ -305,7 +303,7 @@ jobs:
echo "::set-output name=CHECKSUM::${hashsum}"
#copy MSI to choco directory to build a nuget package
Copy-Item -Path "testkube.msi" -Destination ".\choco\tools\$env:MSI_NAME.msi"
Copy-Item -Path "$MSI_PATH" -Destination ".\choco\tools\$env:MSI_NAME.msi"
env:
MSI_NAME: testkube_${{steps.tag.outputs.tag}}_Windows_i386

Expand All @@ -315,7 +313,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: testkube.msi
asset_path: D:\a\testkube\testkube\artifacts\testkube.msi
asset_name: ${{steps.checksum.outputs.INSTALLER_NAME}}.msi
asset_content_type: application/octet-stream

Expand Down

0 comments on commit a568390

Please sign in to comment.