|
5 | 5 | variables:
|
6 | 6 | - group: ESRP
|
7 | 7 | - group: GithubTestingFeedCreds
|
| 8 | + - group: PSGetSymbol |
8 | 9 | # Prevents auto-injection of nuget-security-analysis (not needed for open source projects)
|
9 | 10 | - name: skipNugetSecurityAnalysis
|
10 | 11 | value: true
|
@@ -235,6 +236,15 @@ stages:
|
235 | 236 | $vstsCommandString = "vso[task.setvariable variable=signOutPathCreated]${signOutPath}"
|
236 | 237 | Write-Host "sending " + $vstsCommandString
|
237 | 238 | Write-Host "##$vstsCommandString"
|
| 239 | + |
| 240 | + # Upload symbol pdb file |
| 241 | + $moduleName = "$($config.ModuleName)" |
| 242 | + $symbolFilePath = Join-Path -Path $srcPath -ChildPath "$moduleName.pdb" |
| 243 | + $folderName = "symbolResult" |
| 244 | + $artifactName = "symbolfile" |
| 245 | + $vstsCommandString = "vso[artifact.upload containerfolder=${folderName};artifactname=${artifactName}]${symbolFilePath}" |
| 246 | + Write-Host "sending " + $vstsCommandString |
| 247 | + Write-Host "##$vstsCommandString" |
238 | 248 | displayName: Set up for module created files code signing
|
239 | 249 | condition: and(and(succeeded(), eq(variables['Build.Reason'], 'Manual')), ne(variables['SkipSigning'], 'True'))
|
240 | 250 |
|
@@ -407,6 +417,12 @@ stages:
|
407 | 417 | displayName: PowerShell Core on macOS
|
408 | 418 | imageName: macOS-latest
|
409 | 419 |
|
| 420 | +- stage: PublishSymbols |
| 421 | + displayName: Publish Symbols |
| 422 | + condition: and(and(succeeded(), eq(variables['Build.Reason'], 'Manual')), eq(variables['Publish'], 'True')) |
| 423 | + jobs: |
| 424 | + - template: publishsymbols.yml |
| 425 | + |
410 | 426 | - stage: Release
|
411 | 427 | displayName: Publish Package to PSGallery
|
412 | 428 | condition: and(and(succeeded(), eq(variables['Build.Reason'], 'Manual')), eq(variables['Publish'], 'True'))
|
|
0 commit comments