From 26f5f1e731b41102713695a09cbb479b6c7887c7 Mon Sep 17 00:00:00 2001 From: Luis Oliveira Date: Thu, 2 Sep 2021 13:10:31 +0100 Subject: [PATCH] Update os-monaco-core-pipeline.yml for Azure Pipelines --- .../os-monaco-core-pipeline.yml | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/build/azure-pipelines/os-monaco-core-pipeline.yml b/build/azure-pipelines/os-monaco-core-pipeline.yml index 4f7c276bc94be..f457b0c8c33b8 100644 --- a/build/azure-pipelines/os-monaco-core-pipeline.yml +++ b/build/azure-pipelines/os-monaco-core-pipeline.yml @@ -7,6 +7,9 @@ trigger: - main-os pr: none +variables: + TagName: 'v$(Build.BuildNumber)' + stages: - stage: Build displayName: 'Build' @@ -41,16 +44,16 @@ stages: deploy: steps: #Creates a Github release - # - task: GitHubRelease@1 - # inputs: - # gitHubConnection: 'GitHub Release' - # repositoryName: '$(Build.Repository.Name)' - # action: 'create' - # target: '$(Build.SourceVersion)' - # tagSource: 'userSpecifiedTag' - # tag: '$(TagName)' - # changeLogCompareToRelease: 'lastFullRelease' - # changeLogType: 'commitBased' + - task: GitHubRelease@1 + inputs: + gitHubConnection: 'GitHub Release' + repositoryName: '$(Build.Repository.Name)' + action: 'create' + target: '$(Build.SourceVersion)' + tagSource: 'userSpecifiedTag' + tag: '$(TagName)' + changeLogCompareToRelease: 'lastFullRelease' + changeLogType: 'commitBased' #Publishes the package into the private artifact repository - task: Npm@1 inputs: