Skip to content

Commit

Permalink
add release to nuget and github (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
danfiedler-msft authored Nov 1, 2024
1 parent 1a161ae commit f3ddb94
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Pipelines/asa-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'

0 comments on commit f3ddb94

Please sign in to comment.