Skip to content

Commit d38943c

Browse files
committed
Publish installation nupkg to dotnet-tools feed
1 parent 26c8a18 commit d38943c

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.vsts-dnup-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,9 @@ extends:
134134
name: $(DncEngInternalBuildPool)
135135
image: 1es-windows-2022
136136
os: windows
137+
### Publishing ###
138+
- stage: publish
139+
displayName: 🚀 Publish dnup packages
140+
dependsOn: package
141+
jobs:
142+
- template: /eng/pipelines/templates/jobs/dnup/dnup-library-publish.yml@self
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
parameters:
2+
### GENERAL ###
3+
variables: {}
4+
dependsOn: ''
5+
# helixTargetQueue: ''
6+
oneESCompat:
7+
templateFolderName: templates
8+
publishTaskPrefix: ''
9+
# container: ''
10+
# helixTargetContainer: ''
11+
categoryName: dnup
12+
# runTests: true
13+
# publishRetryConfig: false
14+
# publishXunitResults: false
15+
# enableSbom: true
16+
# timeoutInMinutes: 150
17+
18+
jobs:
19+
- template: /eng/common/${{ parameters.oneESCompat.templateFolderName }}/job/job.yml
20+
templateContext:
21+
type: releaseJob
22+
parameters:
23+
steps:
24+
# 1ES docs: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/inputs
25+
- task: 1ES.DownloadPipelineArtifact@1
26+
displayName: 🟣 Download build artifacts
27+
inputs:
28+
artifactName: Artifacts
29+
targetPath: $(System.DefaultWorkingDirectory)/artifacts
30+
# 1ES docs: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs/nuget-packages
31+
# DotNetCoreCLI@2 docs: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/dotnet-core-cli-v2
32+
- ${{ if eq(false, true) }}:
33+
- task: 1ES.PublishNuget@1
34+
displayName: 🟣 Publish packages to AzDO
35+
inputs:
36+
useDotNetTask: true
37+
packagesToPush: $(System.DefaultWorkingDirectory)/artifacts/packages/**/*.nupkg
38+
packageParentPath: $(System.DefaultWorkingDirectory)/artifacts
39+
publishVstsFeed: public/dotnet-tools

0 commit comments

Comments
 (0)