Skip to content

Commit

Permalink
Move Github Release task to last item in CLI publish (#596)
Browse files Browse the repository at this point in the history
* Move Github Release task to last item in CLI publish

Have been having issues with the github release task failing. It should run after the nuget release task to avoid missing publication to nuget.

* Update Changelog.md
  • Loading branch information
gfs authored Dec 15, 2023
1 parent bd092d9 commit 935af10
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
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.27] - 2023-12-12
### Pipelines
Move GitHub Release task to last task in publish pipeline.

## [1.0.26] - 2023-12-05
### Dependencies
Update dependencies.
Expand Down
30 changes: 15 additions & 15 deletions Pipelines/cli/devskim-cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,21 +481,6 @@ stages:
inputs:
targetPath: '$(Build.StagingDirectory)'
artifact: 'Signed_Binaries'
- task: GitHubRelease@1
displayName: Release to GitHub
inputs:
gitHubConnection: 'DevSkim'
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'
- task: NuGetCommand@2
displayName: Publish NuGet Packages
inputs:
Expand Down Expand Up @@ -551,3 +536,18 @@ stages:
inputs:
PathtoPublish: '$(Build.StagingDirectory)/Manifests'
ArtifactName: 'Release Manifests'
- task: GitHubRelease@1
displayName: Release to GitHub
inputs:
gitHubConnection: 'DevSkim'
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 935af10

Please sign in to comment.