Skip to content

Commit 10b85ce

Browse files
add publish to nuget and GitHub (#652)
1 parent 04f19a9 commit 10b85ce

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.44] - 2024-11-01
8+
### Pipeline
9+
Pipeline only changes
10+
711
## [1.0.43] - 2024-10-29
812
### Pipeline
913
Pipeline only changes

Pipelines/cli/devskim-cli-release.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ extends:
105105
- output: pipelineArtifact
106106
path: '$(Build.StagingDirectory)'
107107
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'
108116
steps:
109117
- task: UseDotNet@2
110118
inputs:
@@ -533,4 +541,29 @@ extends:
533541
includeRootFolder: true
534542
archiveType: 'zip'
535543
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

Comments
 (0)