From c5b02d1ceaed31a4cb01f169a42725f3280fca9c Mon Sep 17 00:00:00 2001 From: Fernando Andreu <2480661+fernandreu@users.noreply.github.com> Date: Sun, 26 Jul 2020 13:02:08 +0100 Subject: [PATCH] Reintroduce release scripts as artifact --- azure-pipelines.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fb393d86..9a49e1d4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -223,6 +223,15 @@ stages: fileName: 'OfficeRibbonXEditor.exe' binFolder: 'Installer' + - job: ReleaseScripts + displayName: Publish Release Scripts + steps: + - task: PublishPipelineArtifact@1 + displayName: 'Publish Release Scripts' + inputs: + targetPath: 'build/ReleaseScripts' + artifactName: 'ReleaseScripts' + - stage: Sign dependsOn: Build pool: @@ -268,7 +277,7 @@ stages: - stage: Release dependsOn: Sign - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['createRelease'], 'true')) + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['CreateRelease'], 'true')) jobs: - deployment: Deploy @@ -278,16 +287,11 @@ stages: deploy: steps: - - task: DownloadPipelineArtifact@2 - inputs: - source: 'current' - targetPath: '$(Pipeline.Workspace)' - - task: PowerShell@2 displayName: 'Check Version' inputs: targetType: 'filePath' - filePath: 'build/ReleaseScripts/PreRelease.ps1' + filePath: '$(Pipeline.Workspace)/ReleaseScripts/PreRelease.ps1' arguments: '"$(Pipeline.Workspace)"' - task: ArchiveFiles@2