Skip to content

Commit

Permalink
Reintroduce release scripts as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandreu committed Jul 26, 2020
1 parent 0c88708 commit c5b02d1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c5b02d1

Please sign in to comment.