You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/.azuredevops/pipelines/templates/publish-os-steps.yml

41 lines
1.2 KiB

5 years ago
parameters:
- name: name # defaults for any parameters that aren't specified
default: ''
- name: Runtime
default: ''
- name: OutputName
default: ''
jobs:
- job: Publish ${{ parameters.name }}
pool:
vmImage: ${vmImage}
steps:
5 years ago
- task: DotNetCoreCLI@2
5 years ago
displayName: publish ${{ parameters.name }}
5 years ago
inputs:
command: 'publish'
publishWebProjects: true
arguments: '-c $(BuildConfiguration) -r "$(parameters.Runtime)" -o $(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
zipAfterPublish: false
modifyOutputPath: false
5 years ago
5 years ago
- task: CopyFiles@2
5 years ago
displayName: 'Copy Angular App ${{ parameters.name }}'
5 years ago
inputs:
SourceFolder: '$(UILocation)dist'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)/ClientApp/dist'
5 years ago
5 years ago
- task: ArchiveFiles@2
5 years ago
displayName: Zip ${{ parameters.name }}
5 years ago
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)-$(Build.BuildId).zip'
replaceExistingArchive: true