mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix azure file copy issues in release build (#13182)
Co-authored-by: Aditya Patwardhan <Aditya Patwardhan>
This commit is contained in:
committed by
Travis Plunk
co-authored by
Aditya Patwardhan
parent
408dbafd1c
commit
b08a8ad3da
@@ -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)'
|
||||
|
||||
@@ -165,7 +165,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)'
|
||||
@@ -175,7 +175,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)'
|
||||
|
||||
Reference in New Issue
Block a user