diff --git a/PSModules/stages/deploy-module-publish-only.yml b/PSModules/stages/deploy-module-publish-only.yml index 9538879..7a2f4a1 100644 --- a/PSModules/stages/deploy-module-publish-only.yml +++ b/PSModules/stages/deploy-module-publish-only.yml @@ -44,6 +44,13 @@ stages: archiveFile: '$(Build.ArtifactStagingDirectory)\${{ parameters.ModuleName }}.zip' condition: and(succeeded(), eq(variables['build.sourceBranchName'], '${{ parameters.DefaultBranch }}')) - powershell: | + if ($env:SYSTEM_DEBUG -eq 'true') { + [Net.ServicePointManager]::SecurityProtocol + } + [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 + if ($env:SYSTEM_DEBUG -eq 'true') { + [Net.ServicePointManager]::SecurityProtocol + } if ($env:SYSTEM_DEBUG -eq 'true') { gci env: git --no-pager config --list