Skip to content

Commit

Permalink
Merge pull request #513 from SimplyGed/main
Browse files Browse the repository at this point in the history
Fix zip output to remove unnecessary folders
  • Loading branch information
poppastring authored Dec 9, 2020
2 parents 618fbd9 + bcbe0a9 commit fee3ed3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,20 @@ steps:
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory) --self-contained --no-build --no-restore'
zipAfterPublish: false
modifyOutputPath: false
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)/$(System.TeamProject)_$(Build.BuildNumber) --self-contained --no-build --no-restore'

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
includeRootFolder: true
rootFolderOrFile: $(Build.ArtifactStagingDirectory)/$(System.TeamProject)_$(Build.BuildNumber)
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(imageName)/$(System.TeamProject)_$(Build.BuildNumber).zip'
includeRootFolder: false
archiveFile: '$(Build.ArtifactStagingDirectory)/$(System.TeamProject)_$(Build.BuildNumber).zip'
replaceExistingArchive: true

- task: PublishPipelineArtifact@1
condition: and(succeeded(), eq(variables['imageName'], 'windows-2019'))
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/$(imageName)
targetPath: '$(Build.ArtifactStagingDirectory)/$(System.TeamProject)_$(Build.BuildNumber).zip'
artifactName: $(System.TeamProject)_$(Build.BuildNumber)

0 comments on commit fee3ed3

Please sign in to comment.