2019-01-30 23:10:52 +01:00
|
|
|
parameters:
|
|
|
|
architecture: x86
|
2019-02-01 00:10:19 +01:00
|
|
|
version: 6.2.0
|
2019-01-30 23:10:52 +01:00
|
|
|
msi: yes
|
2019-04-16 02:07:15 +02:00
|
|
|
msix: yes
|
2020-03-21 20:36:10 +01:00
|
|
|
pdb: no
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
steps:
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(Build.StagingDirectory)\signedPackages
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2020-01-28 20:51:07 +01:00
|
|
|
- task: AzureFileCopy@3
|
2019-01-30 23:10:52 +01:00
|
|
|
displayName: 'upload signed msi to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
2019-02-01 00:10:19 +01:00
|
|
|
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi'
|
2019-01-30 23:10:52 +01:00
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
2019-08-28 18:44:02 +02:00
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(System.ArtifactsDirectory)\signed
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2020-01-28 20:51:07 +01:00
|
|
|
- task: AzureFileCopy@3
|
2019-01-30 23:10:52 +01:00
|
|
|
displayName: 'upload signed zip to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
2019-02-01 00:10:19 +01:00
|
|
|
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
|
2019-01-30 23:10:52 +01:00
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
2019-08-28 18:44:02 +02:00
|
|
|
condition: succeeded()
|
2019-04-16 02:07:15 +02:00
|
|
|
|
2020-03-21 20:36:10 +01:00
|
|
|
- task: AzureFileCopy@3
|
|
|
|
displayName: 'upload pbd zip to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
|
|
|
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-Symbols-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
|
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.pdb }}', 'yes'))
|
|
|
|
|
2019-04-16 02:07:15 +02:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(Build.StagingDirectory)\signedPackages
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'))
|
|
|
|
|
2020-01-28 20:51:07 +01:00
|
|
|
- task: AzureFileCopy@3
|
2019-04-16 02:07:15 +02:00
|
|
|
displayName: 'upload signed msix to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
|
|
|
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix'
|
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
2019-11-05 22:03:44 +01:00
|
|
|
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'), eq(variables['SHOULD_SIGN'], 'true'))
|