diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index b38a73fc6c5b..307014a78707 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -148,19 +148,17 @@ extends: - template: /eng/pipelines/templates/variables/globals.yml@self - template: /eng/pipelines/templates/variables/image.yml@self - # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - - ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}: - - template: archetype-python-release.yml@self - parameters: - DependsOn: "Build" - ServiceDirectory: ${{ parameters.ServiceDirectory }} - Artifacts: ${{ parameters.Artifacts }} - ${{ if eq(parameters.ServiceDirectory, 'template') }}: - TestPipeline: true - ArtifactName: packages_extended - DocArtifact: documentation - TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} - TargetDocRepoName: ${{ parameters.TargetDocRepoName }} - DevFeedName: ${{ parameters.DevFeedName }} + - template: archetype-python-release.yml@self + parameters: + DependsOn: "Build" + ServiceDirectory: ${{ parameters.ServiceDirectory }} + Artifacts: ${{ parameters.Artifacts }} + ${{ if eq(parameters.ServiceDirectory, 'template') }}: + TestPipeline: true + ArtifactName: packages_extended + DocArtifact: documentation + TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} + TargetDocRepoName: ${{ parameters.TargetDocRepoName }} + DevFeedName: ${{ parameters.DevFeedName }}