From 9c0e96cda290505ad06843e328c53d52733022b6 Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Tue, 2 Jun 2020 19:56:01 +0200 Subject: [PATCH 1/3] Release Azure Pipeline Release Pipeline [skip ci] --- azure-pipelines-release.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines-release.yml diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml new file mode 100644 index 0000000..68e5ba7 --- /dev/null +++ b/azure-pipelines-release.yml @@ -0,0 +1,47 @@ +# .NET Desktop +# Build and run tests for .NET Desktop or Windows classic desktop solutions. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: GitHubRelease@1 + inputs: + gitHubConnection: Hofknecht + repositoryName: '$(Build.Repository.Name)' + action: 'create' + target: '$(Build.SourceVersion)' + tagSource: 'gitTag' + title: 'SystemTrayMenu' + changeLogCompareToRelease: 'lastFullRelease' + changeLogType: 'issueBased' + changeLogLabels: '[{ "label" : "Release", "displayName" : "Release", "state" : "closed" }]' + assets: | + $(Build.ArtifactStagingDirectory)/* \ No newline at end of file From 759a548100c1abeb194fe55439225e33eec430cc Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Tue, 2 Jun 2020 20:00:55 +0200 Subject: [PATCH 2/3] Update azure-pipelines-release.yml for Azure Pipelines --- azure-pipelines-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index 68e5ba7..d6aada6 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -34,7 +34,7 @@ steps: - task: GitHubRelease@1 inputs: - gitHubConnection: Hofknecht + gitHubConnection: bb517b361e33028161909bde9252bf3046cad789 repositoryName: '$(Build.Repository.Name)' action: 'create' target: '$(Build.SourceVersion)' @@ -44,4 +44,4 @@ steps: changeLogType: 'issueBased' changeLogLabels: '[{ "label" : "Release", "displayName" : "Release", "state" : "closed" }]' assets: | - $(Build.ArtifactStagingDirectory)/* \ No newline at end of file + $(Build.ArtifactStagingDirectory)/* From 6444d673ca5f5e72ac0fdd54b8c542484ce24a4a Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Tue, 2 Jun 2020 20:06:09 +0200 Subject: [PATCH 3/3] Update azure-pipelines-release.yml for Azure Pipelines --- azure-pipelines-release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index d6aada6..643ef20 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -32,9 +32,17 @@ steps: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)' + includeRootFolder: true + archiveType: 'zip' + archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' + replaceExistingArchive: true + - task: GitHubRelease@1 inputs: - gitHubConnection: bb517b361e33028161909bde9252bf3046cad789 + gitHubConnection: Hofknecht repositoryName: '$(Build.Repository.Name)' action: 'create' target: '$(Build.SourceVersion)' @@ -44,4 +52,4 @@ steps: changeLogType: 'issueBased' changeLogLabels: '[{ "label" : "Release", "displayName" : "Release", "state" : "closed" }]' assets: | - $(Build.ArtifactStagingDirectory)/* + $(Build.ArtifactStagingDirectory)/*.zip