Skip to content

Commit 8ad5e30

Browse files
authored
Add New Packages to Publish.yml (#395)
1 parent 8278676 commit 8ad5e30

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

eng/publish/publish.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,73 @@ extends:
278278
nuGetFeedType: external
279279
publishFeedCredentials: 'DurableTask org NuGet API Key'
280280
packagesToPush: '$(System.DefaultWorkingDirectory)/drop/Microsoft.DurableTask.Worker.Grpc.*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg' # Despite this being a custom command, we need to keep this for 1ES validation
281+
packageParentPath: $(System.DefaultWorkingDirectory) # This needs to be set to some prefix of the `packagesToPush` parameter. Apparently it helps with SDL tooling
282+
283+
# NuGet release (Microsoft.DurableTask.Client.AzureManaged)
284+
- job: nugetRelease_Microsoft_DurableTask_Client_AzureManaged
285+
displayName: NuGet Release (Microsoft.DurableTask.Client.AzureManaged)
286+
dependsOn: nugetApproval
287+
condition: succeeded('nugetApproval') # nuget packages need to be on ADO first
288+
templateContext:
289+
type: releaseJob
290+
isProduction: true
291+
inputs:
292+
- input: pipelineArtifact
293+
pipeline: officialPipeline # Pipeline reference as defined in the resources section
294+
artifactName: drop
295+
targetPath: $(System.DefaultWorkingDirectory)/drop
296+
steps:
297+
- task: 1ES.PublishNuget@1
298+
displayName: 'NuGet push (Microsoft.DurableTask.Client.AzureManaged)'
299+
inputs:
300+
command: push
301+
nuGetFeedType: external
302+
publishFeedCredentials: 'DurableTask org NuGet API Key'
303+
packagesToPush: '$(System.DefaultWorkingDirectory)/drop/Microsoft.DurableTask.Client.AzureManaged.*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg' # Despite this being a custom command, we need to keep this for 1ES validation
304+
packageParentPath: $(System.DefaultWorkingDirectory) # This needs to be set to some prefix of the `packagesToPush` parameter. Apparently it helps with SDL tooling
305+
306+
# NuGet release (Microsoft.DurableTask.Worker.AzureManaged)
307+
- job: nugetRelease_Microsoft_DurableTask_Worker_AzureManaged
308+
displayName: NuGet Release (Microsoft.DurableTask.Worker.AzureManaged)
309+
dependsOn: nugetApproval
310+
condition: succeeded('nugetApproval') # nuget packages need to be on ADO first
311+
templateContext:
312+
type: releaseJob
313+
isProduction: true
314+
inputs:
315+
- input: pipelineArtifact
316+
pipeline: officialPipeline # Pipeline reference as defined in the resources section
317+
artifactName: drop
318+
targetPath: $(System.DefaultWorkingDirectory)/drop
319+
steps:
320+
- task: 1ES.PublishNuget@1
321+
displayName: 'NuGet push (Microsoft.DurableTask.Worker.AzureManaged)'
322+
inputs:
323+
command: push
324+
nuGetFeedType: external
325+
publishFeedCredentials: 'DurableTask org NuGet API Key'
326+
packagesToPush: '$(System.DefaultWorkingDirectory)/drop/Microsoft.DurableTask.Worker.AzureManaged.*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg' # Despite this being a custom command, we need to keep this for 1ES validation
327+
packageParentPath: $(System.DefaultWorkingDirectory) # This needs to be set to some prefix of the `packagesToPush` parameter. Apparently it helps with SDL tooling
328+
329+
# NuGet release (Microsoft.DurableTask.ScheduledTasks)
330+
- job: nugetRelease_Microsoft_DurableTask_ScheduledTasks
331+
displayName: NuGet Release (Microsoft.DurableTask.ScheduledTasks)
332+
dependsOn: nugetApproval
333+
condition: succeeded('nugetApproval') # nuget packages need to be on ADO first
334+
templateContext:
335+
type: releaseJob
336+
isProduction: true
337+
inputs:
338+
- input: pipelineArtifact
339+
pipeline: officialPipeline # Pipeline reference as defined in the resources section
340+
artifactName: drop
341+
targetPath: $(System.DefaultWorkingDirectory)/drop
342+
steps:
343+
- task: 1ES.PublishNuget@1
344+
displayName: 'NuGet push (Microsoft.DurableTask.ScheduledTasks)'
345+
inputs:
346+
command: push
347+
nuGetFeedType: external
348+
publishFeedCredentials: 'DurableTask org NuGet API Key'
349+
packagesToPush: '$(System.DefaultWorkingDirectory)/drop/Microsoft.DurableTask.ScheduledTasks.*.nupkg;!$(System.DefaultWorkingDirectory)/**/*.symbols.nupkg' # Despite this being a custom command, we need to keep this for 1ES validation
281350
packageParentPath: $(System.DefaultWorkingDirectory) # This needs to be set to some prefix of the `packagesToPush` parameter. Apparently it helps with SDL tooling

0 commit comments

Comments
 (0)