@@ -105,6 +105,14 @@ extends:
105
105
- output : pipelineArtifact
106
106
path : ' $(Build.StagingDirectory)'
107
107
artifact : ' Signed_Binaries_$(System.JobId)_$(System.JobAttempt)'
108
+ # see https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs/nuget-packages
109
+ - output : nuget
110
+ useDotNetTask : false
111
+ packagesToPush : ' $(Build.StagingDirectory)/*.nupkg'
112
+ packageParentPath : ' $(Build.StagingDirectory)'
113
+ nuGetFeedType : external
114
+ publishPackageMetadata : true
115
+ publishFeedCredentials : ' sdl-oss-nuget-publish'
108
116
steps :
109
117
- task : UseDotNet@2
110
118
inputs :
@@ -533,4 +541,29 @@ extends:
533
541
includeRootFolder : true
534
542
archiveType : ' zip'
535
543
archiveFile : ' $(Build.StagingDirectory)/DevSkim_CLI_netcoreapp_$(ReleaseVersion).zip'
536
- replaceExistingArchive : true
544
+ replaceExistingArchive : true
545
+ - task : PowerShell@2
546
+ displayName : Generate Hashes
547
+ inputs :
548
+ targetType : ' inline'
549
+ script : |
550
+ Get-ChildItem $(Build.StagingDirectory) | Foreach-Object {
551
+ $name = $_.Name
552
+ $tmp = (Get-FileHash "$(Build.StagingDirectory)\$name").Hash
553
+ Add-Content $(Build.StagingDirectory)\HASHES.txt "$tmp`t$name"
554
+ }
555
+ - task : GitHubRelease@1
556
+ displayName : Release to GitHub
557
+ inputs :
558
+ gitHubConnection : ' github.com_gfs'
559
+ repositoryName : ' microsoft/DevSkim'
560
+ action : ' create'
561
+ target : ' $(Build.SourceVersion)'
562
+ tagSource : ' userSpecifiedTag'
563
+ tag : ' v$(ReleaseVersion)'
564
+ title : ' DevSkim CLI v$(ReleaseVersion)'
565
+ assets : |
566
+ $(Build.StagingDirectory)/*.zip
567
+ $(Build.StagingDirectory)/HASHES.txt
568
+ changeLogCompareToRelease : ' lastNonDraftRelease'
569
+ changeLogType : ' commitBased'
0 commit comments