From 58f1ee256ad1d73d9e68935ee3c5789694234b42 Mon Sep 17 00:00:00 2001 From: Arjun Roy Chaudhuri Date: Fri, 14 Jun 2019 15:40:34 -0700 Subject: [PATCH] create git release in a seperate job --- .../templates/_releaseJobTemplate.yml | 26 ++++++++++++++++++- .../templates/_releaseStepTemplate.yml | 10 +------ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/vsts/pipelines/templates/_releaseJobTemplate.yml b/vsts/pipelines/templates/_releaseJobTemplate.yml index c4e891d7db..9189be35c6 100644 --- a/vsts/pipelines/templates/_releaseJobTemplate.yml +++ b/vsts/pipelines/templates/_releaseJobTemplate.yml @@ -27,4 +27,28 @@ jobs: echo "##vso[task.setvariable variable=ReleaseRuntimeImages;]true" displayName: 'Set variables' - - template: _releaseStepTemplate.yml \ No newline at end of file + - template: _releaseStepTemplate.yml + +- job: Release_GitHub + displayName: Create GitHub release + dependsOn: + - Release_BuildImage + - Release_RuntimeImages + pool: + name: OryxLinux + variables: + skipComponentGovernanceDetection: true + + steps: + - task: DownloadBuildArtifacts@0 + displayName: 'Download Artifacts for release' + inputs: + artifactName: drop + + - task: GitHubRelease@0 + displayName: 'GitHub release (create)' + inputs: + gitHubConnection: 'Oryx-GitHub' + repositoryName: Microsoft/Oryx + tagSource: manual + tag: '$(Build.BuildNumber)' \ No newline at end of file diff --git a/vsts/pipelines/templates/_releaseStepTemplate.yml b/vsts/pipelines/templates/_releaseStepTemplate.yml index 6002a7534d..fe9584063a 100644 --- a/vsts/pipelines/templates/_releaseStepTemplate.yml +++ b/vsts/pipelines/templates/_releaseStepTemplate.yml @@ -99,12 +99,4 @@ steps: displayName: 'Clean up Docker containers and images' inputs: scriptPath: ./vsts/scripts/dockerCleanup.sh - condition: true - -- task: GitHubRelease@0 - displayName: 'GitHub release (create)' - inputs: - gitHubConnection: 'Oryx-GitHub' - repositoryName: Microsoft/Oryx - tagSource: manual - tag: '$(Build.BuildNumber)' + condition: true \ No newline at end of file