Skip to content

Commit f3ddb94

Browse files
add release to nuget and github (#723)
1 parent 1a161ae commit f3ddb94

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Pipelines/asa-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ extends:
9999
- output: pipelineArtifact
100100
path: '$(Build.StagingDirectory)'
101101
artifact: 'Signed_Binaries_$(System.JobId)_$(System.JobAttempt)'
102+
# see https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs/nuget-packages
103+
- output: nuget
104+
useDotNetTask: false
105+
packagesToPush: '$(Build.StagingDirectory)/*.nupkg'
106+
packageParentPath: '$(Build.StagingDirectory)'
107+
nuGetFeedType: external
108+
publishPackageMetadata: true
109+
publishFeedCredentials: 'sdl-oss-nuget-publish'
102110
steps:
103111
- task: UseDotNet@2
104112
inputs:
@@ -537,3 +545,18 @@ extends:
537545
script: |
538546
mv $env:BUILD_BINARIESDIRECTORY/*.nupkg $env:BUILD_STAGINGDIRECTORY/
539547
mv $env:BUILD_BINARIESDIRECTORY/*.snupkg $env:BUILD_STAGINGDIRECTORY/
548+
- task: GitHubRelease@1
549+
displayName: Release to GitHub
550+
inputs:
551+
gitHubConnection: 'github.com_gfs'
552+
repositoryName: 'microsoft/AttackSurfaceAnalyzer'
553+
action: 'create'
554+
target: '$(Build.SourceVersion)'
555+
tagSource: 'userSpecifiedTag'
556+
tag: 'v$(ReleaseVersion)'
557+
title: 'v$(ReleaseVersion)'
558+
assets: |
559+
$(Build.StagingDirectory)/*.zip
560+
$(Build.StagingDirectory)/HASHES.txt
561+
changeLogCompareToRelease: 'lastNonDraftRelease'
562+
changeLogType: 'commitBased'

0 commit comments

Comments
 (0)