mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 11:56:14 +08:00
Fix azure file copy issues in release build (#13182)
Co-authored-by: Aditya Patwardhan <Aditya Patwardhan>
This commit is contained in:
parent
3a1158e1dd
commit
4fea935cad
@ -112,7 +112,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload to Azure - DEB and tar.gz'
|
||||
inputs:
|
||||
SourcePath: '$(System.ArtifactsDirectory)\finished\release'
|
||||
SourcePath: '$(System.ArtifactsDirectory)\finished\release\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
@ -125,7 +125,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload to Azure - RPM - Unsigned'
|
||||
inputs:
|
||||
SourcePath: '$(System.ArtifactsDirectory)\rpm\release'
|
||||
SourcePath: '$(System.ArtifactsDirectory)\rpm\release\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
@ -135,7 +135,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload to Azure - RPM - Signed'
|
||||
inputs:
|
||||
SourcePath: '$(Build.StagingDirectory)\signedPackages'
|
||||
SourcePath: '$(Build.StagingDirectory)\signedPackages\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
|
@ -79,7 +79,7 @@ jobs:
|
||||
New-Item -Path $destination -Type Directory
|
||||
$zipPath = dir "$(Build.StagingDirectory)\signedMacOSPackages\powershell-*.zip" -Recurse | select-object -expandproperty fullname
|
||||
foreach ($z in $zipPath) { Expand-Archive -Path $z -DestinationPath $destination }
|
||||
$targzPath = dir "$(System.ArtifactsDirectory)\*.tar.gz" -Recurse | select-object -expandproperty fullname
|
||||
$targzPath = dir "$(System.ArtifactsDirectory)\*osx*.tar.gz" -Recurse | select-object -expandproperty fullname
|
||||
Copy-Item -Path $targzPath -Destination $destination
|
||||
displayName: 'Extract and copy macOS artifacts for upload'
|
||||
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))
|
||||
@ -100,7 +100,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'AzureBlob File Copy - unsigned'
|
||||
inputs:
|
||||
SourcePath: '$(Build.StagingDirectory)\macos-unsigned'
|
||||
SourcePath: '$(Build.StagingDirectory)\macos-unsigned\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'AzureBlob File Copy - signed'
|
||||
inputs:
|
||||
SourcePath: '$(System.ArtifactsDirectory)\azureMacOs'
|
||||
SourcePath: '$(System.ArtifactsDirectory)\azureMacOs\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
|
@ -163,7 +163,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload NuGet packages to Azure'
|
||||
inputs:
|
||||
SourcePath: '$(System.ArtifactsDirectory)\signed\'
|
||||
SourcePath: '$(System.ArtifactsDirectory)\signed\*'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
@ -173,7 +173,7 @@ jobs:
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload global tool packages to Azure'
|
||||
inputs:
|
||||
sourcePath: '$(System.ArtifactsDirectory)\signed\globaltool'
|
||||
sourcePath: '$(System.ArtifactsDirectory)\signed\globaltool\*'
|
||||
azureSubscription: '$(GlobalToolSubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(GlobalToolStorageAccount)'
|
||||
|
Loading…
Reference in New Issue
Block a user