From 79b8619201493152f180ca411de3c5fa988dd3e5 Mon Sep 17 00:00:00 2001 From: Tilman Reinhardt <45289620+tlmnrnhrdt@users.noreply.github.com> Date: Tue, 9 Aug 2022 17:19:31 +0200 Subject: [PATCH] Update build-test-deploy.yml for Azure Pipelines --- build-test-deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/build-test-deploy.yml b/build-test-deploy.yml index 7b260c1a7..0b6a0eebd 100644 --- a/build-test-deploy.yml +++ b/build-test-deploy.yml @@ -128,6 +128,28 @@ steps: condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables.TAG_EXISTS, 'true')) displayName: Package NuGet +- task: GitHubRelease@1 + inputs: + gitHubConnection: 'github.com_peterjgrainger' + repositoryName: 'arup-group/GSA-Grasshopper' + action: 'edit' + target: '$(Build.SourceVersion)' + tag: '$(dotSeparatedTag)' + title: 'GsaGH version $(dotSeparatedTag)' + releaseNotesSource: 'inline' + releaseNotesInline: | + Created from commit https://github.com/arup-group/GSA-Grasshopper/commit/$(Build.SourceVersion) + assets: | + $(System.DefaultWorkingDirectory)/**/*.yak + $(Build.ArtifactStagingDirectory)/**/*.nupkg + $(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg + assetUploadMode: 'replace' + isDraft: true + isPreRelease: true + addChangeLog: false + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables.TAG_EXISTS, 'true')) + displayName: 'Publishing assets to Github' + - powershell: | $installerPath = $(ls -r $(Pipeline.Workspace)\gsa.msi) Write-output "Installer Path: ${installerPath}"