From 03f9bb630174c66d00a604dd71e786c2eed54309 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Fri, 1 Nov 2024 09:12:57 -0400 Subject: [PATCH] add release to nuget and github --- Pipelines/asa-release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Pipelines/asa-release.yml b/Pipelines/asa-release.yml index f5fbc464..48d71a2d 100644 --- a/Pipelines/asa-release.yml +++ b/Pipelines/asa-release.yml @@ -99,6 +99,14 @@ extends: - output: pipelineArtifact path: '$(Build.StagingDirectory)' artifact: 'Signed_Binaries_$(System.JobId)_$(System.JobAttempt)' + # see https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs/nuget-packages + - output: nuget + useDotNetTask: false + packagesToPush: '$(Build.StagingDirectory)/*.nupkg' + packageParentPath: '$(Build.StagingDirectory)' + nuGetFeedType: external + publishPackageMetadata: true + publishFeedCredentials: 'sdl-oss-nuget-publish' steps: - task: UseDotNet@2 inputs: @@ -537,3 +545,18 @@ extends: script: | mv $env:BUILD_BINARIESDIRECTORY/*.nupkg $env:BUILD_STAGINGDIRECTORY/ mv $env:BUILD_BINARIESDIRECTORY/*.snupkg $env:BUILD_STAGINGDIRECTORY/ + - task: GitHubRelease@1 + displayName: Release to GitHub + inputs: + gitHubConnection: 'github.com_gfs' + repositoryName: 'microsoft/AttackSurfaceAnalyzer' + action: 'create' + target: '$(Build.SourceVersion)' + tagSource: 'userSpecifiedTag' + tag: 'v$(ReleaseVersion)' + title: 'v$(ReleaseVersion)' + assets: | + $(Build.StagingDirectory)/*.zip + $(Build.StagingDirectory)/HASHES.txt + changeLogCompareToRelease: 'lastNonDraftRelease' + changeLogType: 'commitBased' \ No newline at end of file