Skip to content

Commit

Permalink
fix release dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Sep 2, 2024
1 parent d2cf546 commit 7f696ec
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .azuredevops/Pipelines/Templates/publish-release-dependencies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:

- task: CopyFiles@2
displayName: Copy release dependencies
inputs:
contents: 'dotnet-releaser.toml'
targetFolder: _output_release_dependencies

- task: PublishBuildArtifacts@1
displayName: Publish release dependencies
inputs:
PathtoPublish: "_output_release_dependencies"
ArtifactName: release-dependencies
2 changes: 2 additions & 0 deletions .azuredevops/Pipelines/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,6 @@ stages:
zipAfterPublish: false

- template: Templates/create-installer.yaml

- template: Templates/publish-release-dependencies.yaml

8 changes: 4 additions & 4 deletions .azuredevops/Pipelines/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ stages:
displayName: 🔻 Download installer artifact
patterns: 'installer/*'
- download: CI
artifact: publisher
artifact: release-dependencies
displayName: 🔻 Download publisher artifact
patterns: 'publisher/*'
patterns: 'release-dependencies/*'
- task: GitHubRelease@1
displayName: 📢 Create GitHub release
inputs:
Expand All @@ -75,7 +75,7 @@ stages:
title: v$(resources.pipeline.CI.runName)
isDraft: false
isPreRelease: $(IsPrerelease)
assets: $(Pipeline.Workspace)/CI/installer/*.dll
assets: $(Pipeline.Workspace)/CI/installer/*Setup.exe
changeLogCompareToRelease: lastNonDraftRelease
changeLogType: issueBased
changeLogLabels: |
Expand All @@ -86,6 +86,6 @@ stages:
]
- powershell: |
dotnet tool install --global dotnet-releaser
dotnet-releaser changelog --update --github-token $(GITHUB_TOKEN) $(Pipeline.Workspace)/CI/publisher/dotnet-releaser.toml $(resources.pipeline.CI.runName)
dotnet-releaser changelog --update --github-token $(GITHUB_TOKEN) $(Pipeline.Workspace)/CI/release-dependencies/dotnet-releaser.toml $(resources.pipeline.CI.runName)
displayName: 📢 Update GitHub release using Releaser
5 changes: 5 additions & 0 deletions dotnet-releaser.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# configuration file for dotnet-releaser
[github]
user = "coenm"
repo = "RepoM"
version_prefix = "v"

0 comments on commit 7f696ec

Please sign in to comment.