Skip to content

Commit f6f62b8

Browse files
authored
Add exe wrapper to release (PowerShell#14881)
1 parent 3ded319 commit f6f62b8

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

tools/releaseBuild/Images/microsoft_powershell_windowsservercore/PowerShellPackage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ try{
149149

150150
Write-Verbose "Exporting packages ..." -Verbose
151151

152-
Get-ChildItem $location\*.msi,$location\*.zip,$location\*.wixpdb,$location\*.msix | ForEach-Object {
152+
Get-ChildItem $location\*.msi,$location\*.zip,$location\*.wixpdb,$location\*.msix,$location\*.exe | ForEach-Object {
153153
$file = $_.FullName
154154
Write-Verbose "Copying $file to $destination" -Verbose
155155
Copy-Item -Path $file -Destination "$destination\" -Force

tools/releaseBuild/azureDevOps/templates/upload.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ steps:
3939
resourceGroup: '$(StorageResourceGroup)'
4040
condition: succeeded()
4141

42+
- template: upload-final-results.yml
43+
parameters:
44+
artifactPath: $(System.ArtifactsDirectory)\signed
45+
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.exe
46+
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
47+
48+
- task: AzureFileCopy@4
49+
displayName: 'upload signed exe to Azure - ${{ parameters.architecture }}'
50+
inputs:
51+
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.exe'
52+
azureSubscription: '$(AzureFileCopySubscription)'
53+
Destination: AzureBlob
54+
storage: '$(StorageAccount)'
55+
ContainerName: '$(AzureVersion)-private'
56+
resourceGroup: '$(StorageResourceGroup)'
57+
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
58+
4259
# Disable upload task as the symbols package is not currently used and we want to avoid publishing this in releases
4360
#- task: AzureFileCopy@4
4461
# displayName: 'upload pbd zip to Azure - ${{ parameters.architecture }}'

tools/releaseBuild/azureDevOps/templates/windows-package-signing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
pattern: |
4949
**\*.msi
5050
**\*.msix
51+
**\*.exe
5152
useMinimatch: true
5253
shouldSign: $(SHOULD_SIGN)
5354

0 commit comments

Comments
 (0)