File tree Expand file tree Collapse file tree 1 file changed +37
-2
lines changed Expand file tree Collapse file tree 1 file changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ trigger:
77 branches :
88 include :
99 - master
10+ paths :
11+ exclude :
12+ - ' **/*.png'
13+ - ' **/*.md'
1014
1115pool :
1216 vmImage : windows-latest
@@ -57,7 +61,38 @@ steps:
5761
5862 Write-Host -Foreground Green "Uploading to codecov..."
5963
60- .\codecov.exe --dir "Artifacts/Coverage" -t "$env:CODECOV_TOKEN" -b "$(Build.BuildNumber)"
64+ .\codecov.exe --dir "Artifacts/Coverage" -t "$env:CODECOV_TOKEN" --build "$(Build.BuildNumber)"
6165
6266 Write-Host -Foreground Green "✅ Uploaded to codecov."
63- pwsh : true
67+ pwsh : true
68+
69+ - publish : $(Build.SourcesDirectory)/Artifacts
70+ displayName : ' Publish Artifacts'
71+ artifact : ' Artifacts'
72+
73+ - task : CopyFiles@2
74+ inputs :
75+ SourceFolder : ' $(Build.SourcesDirectory)/Artifacts'
76+ Contents : |
77+ **/*.nupkg
78+ **/*.symbols.nupkg
79+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
80+ flattenFolders : true
81+ preserveTimestamp : true
82+ retryCount : ' 3'
83+ ignoreMakeDirErrors : true
84+
85+ - task : NuGetCommand@2
86+ inputs :
87+ command : ' push'
88+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
89+ nuGetFeedType : ' internal'
90+ publishVstsFeed : ' 3c66fe1c-9fb6-4a96-b168-9a0291dab0c6'
91+ allowPackageConflicts : true
92+
93+ - task : NuGetCommand@2
94+ inputs :
95+ command : ' push'
96+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/'
97+ nuGetFeedType : ' external'
98+ publishFeedCredentials : ' nuget.org (UnitsNet)'
You can’t perform that action at this time.
0 commit comments