Skip to content

Commit

Permalink
add publish to nuget and GitHub (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
danfiedler-msft authored Nov 1, 2024
1 parent 04f19a9 commit 10b85ce
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.44] - 2024-11-01
### Pipeline
Pipeline only changes

## [1.0.43] - 2024-10-29
### Pipeline
Pipeline only changes
Expand Down
35 changes: 34 additions & 1 deletion Pipelines/cli/devskim-cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,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 @@ -533,4 +541,29 @@ extends:
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(Build.StagingDirectory)/DevSkim_CLI_netcoreapp_$(ReleaseVersion).zip'
replaceExistingArchive: true
replaceExistingArchive: true
- task: PowerShell@2
displayName: Generate Hashes
inputs:
targetType: 'inline'
script: |
Get-ChildItem $(Build.StagingDirectory) | Foreach-Object {
$name = $_.Name
$tmp = (Get-FileHash "$(Build.StagingDirectory)\$name").Hash
Add-Content $(Build.StagingDirectory)\HASHES.txt "$tmp`t$name"
}
- task: GitHubRelease@1
displayName: Release to GitHub
inputs:
gitHubConnection: 'github.com_gfs'
repositoryName: 'microsoft/DevSkim'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(ReleaseVersion)'
title: 'DevSkim CLI v$(ReleaseVersion)'
assets: |
$(Build.StagingDirectory)/*.zip
$(Build.StagingDirectory)/HASHES.txt
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'

0 comments on commit 10b85ce

Please sign in to comment.