@@ -16,7 +16,7 @@ parameters:
1616 default : true
1717- name : InternalFeed
1818 type : string
19- default : ' ATPopFeed '
19+ default : ' 0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build '
2020 displayName : Internal NuGet Feed
2121 values :
2222 - ' 0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_v2'
@@ -105,12 +105,12 @@ extends:
105105 Pattern : " Microsoft.Graph*.nupkg"
106106
107107 - template : .azure-pipelines/common-templates/security-post-checks.yml@self
108- - stage : ' Deploy '
108+ - stage : ' Deploy_to_Internal_Feed '
109109 dependsOn : stage
110110 jobs :
111111 - deployment : ' DeployToInternalFeed'
112112 displayName : ' Deploy to Internal Feed'
113- environment : ' InternalFeed '
113+ environment : ' PowerShellInternalFeed '
114114 strategy :
115115 runOnce :
116116 deploy :
@@ -120,9 +120,6 @@ extends:
120120 displayName : ' Download Build Artifacts'
121121 inputs :
122122 buildType : ' current'
123- # project: 'Graph Developer Experiences'
124- # definition: 'PowerShell V2 Build'
125- # buildVersionToDownload: 'latest'
126123 targetPath : ' $(System.DefaultWorkingDirectory)'
127124 - task : 1ES.PublishNuget@1
128125 displayName : ' Publish NuGet to feed'
@@ -133,7 +130,31 @@ extends:
133130 publishVstsFeed : ${{ parameters.InternalFeed }}
134131 nuGetFeedType : internal
135132 allowPackageConflicts : true
136-
133+ - stage : ' Deploy_to_PsGallery'
134+ dependsOn : stage
135+ jobs :
136+ - deployment : ' DeployToPowerShellGallery'
137+ displayName : ' Deploy to PowerShell Gallery'
138+ environment : ' PowerShellGallery'
139+ strategy :
140+ runOnce :
141+ deploy :
142+ steps :
143+ - checkout : self
144+ - task : DownloadPipelineArtifact@2
145+ displayName : ' Download Build Artifacts'
146+ inputs :
147+ buildType : ' current'
148+ targetPath : ' $(System.DefaultWorkingDirectory)'
149+ - task : 1ES.PublishNuget@1
150+ displayName : ' Publish NuGet to feed'
151+ inputs :
152+ useDotNetTask : false
153+ packageParentPath : ' $(System.DefaultWorkingDirectory)'
154+ packagesToPush : ' $(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
155+ publishVstsFeed : ${{ parameters.InternalFeed }}
156+ nuGetFeedType : internal
157+ allowPackageConflicts : true
137158
138159
139160
0 commit comments