@@ -86,13 +86,13 @@ jobs:
8686 $tag="${{ needs.get-tag-name.outputs.tag }}"
8787 powershell .\msi-builder\BuildFinchMSI.ps1 -Version $version
8888 $timestamp=[math]::truncate((Get-Date (Get-Date).ToUniversalTime() -UFormat "%s"))
89- $unsignedMSI="Finch-$tag -$timestamp.msi"
89+ $unsignedMSI="Finch-$version -$timestamp.msi"
9090 Write-Host "Upload unsigned MSI: $unsignedMSI"
9191
9292 aws s3 cp "./msi-builder/build/Finch-$version.msi" "${{ secrets.WINDOWS_UNSIGNED_BUCKET }}$unsignedMSI" --acl bucket-owner-full-control --no-progress
9393 New-Item -Path "./msi-builder/build/signed/" -ItemType Directory -Force
9494
95- Write-Host "Attemp to download signed MSI"
95+ Write-Host "Attempt to download signed MSI"
9696 $retryCount = 0
9797 $maxRetries = 20
9898 $delay = 5
@@ -102,7 +102,7 @@ jobs:
102102 $signedMSI = aws s3 ls ${{ secrets.WINDOWS_SIGNED_BUCKET }} 2>&1 | Where-Object { $_ -match "$unsignedMSI" } | Sort-Object -Descending | Select-Object -First 1 | ForEach-Object { ($_ -split '\s+')[-1] }
103103 if ($signedMSI -and ($signedMSI -notlike "*An error occurred (404) when calling the HeadObject operation*")) {
104104 try {
105- aws s3 cp "${{ secrets.WINDOWS_SIGNED_BUCKET }}$signedMSI" "./msi-builder/build/signed/Finch-$tag .msi"
105+ aws s3 cp "${{ secrets.WINDOWS_SIGNED_BUCKET }}$signedMSI" "./msi-builder/build/signed/Finch-$version .msi"
106106 break
107107 } catch {
108108 Write-Host "Error during copy: $_"
@@ -124,8 +124,8 @@ jobs:
124124 aws-region : ${{ secrets.REGION }}
125125 - name : upload signed MSI to S3
126126 run : |
127- $tag ="${{ needs.get-tag-name.outputs.tag }}"
128- aws s3 cp "./msi-builder/build/signed/Finch-$tag .msi" "s3://${{ secrets.INSTALLER_PRIVATE_BUCKET_NAME }}/Finch-$tag .msi" --no-progress
127+ $version ="${{ needs.get-tag-name.outputs.version }}"
128+ aws s3 cp "./msi-builder/build/signed/Finch-$version .msi" "s3://${{ secrets.INSTALLER_PRIVATE_BUCKET_NAME }}/Finch-$version .msi" --no-progress
129129 - name : Remove Finch VM and Clean Up Previous Environment
130130 if : ${{ always() }}
131131 timeout-minutes : 2
@@ -195,8 +195,8 @@ jobs:
195195 }
196196 - name : Download MSI from S3
197197 run : |
198- $tag ="${{ needs.get-tag-name.outputs.tag }}"
199- aws s3 cp "s3://${{ secrets.INSTALLER_PRIVATE_BUCKET_NAME }}/Finch-$tag .msi" ./Finch.msi
198+ $version ="${{ needs.get-tag-name.outputs.version }}"
199+ aws s3 cp "s3://${{ secrets.INSTALLER_PRIVATE_BUCKET_NAME }}/Finch-$version .msi" ./Finch.msi
200200 - name : Install MSI silently
201201 run : |
202202 Start-Process 'Finch.msi' -ArgumentList '/quiet' -Wait
0 commit comments