mirror of https://github.com/Ombi-app/Ombi
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.
41 lines
1.1 KiB
41 lines
1.1 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:
|
||
|
|
||
|
- task: DotNetCoreCLI@2
|
||
|
displayName: publish $(parameters.name)
|
||
|
inputs:
|
||
|
command: 'publish'
|
||
|
publishWebProjects: true
|
||
|
arguments: '-c $(BuildConfiguration) -r "$(parameters.Runtime)" -o $(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
||
|
zipAfterPublish: false
|
||
|
modifyOutputPath: false
|
||
|
|
||
|
- task: CopyFiles@2
|
||
|
displayName: 'Copy Angular App $(parameters.name)'
|
||
|
inputs:
|
||
|
SourceFolder: '$(UILocation)dist'
|
||
|
Contents: '**'
|
||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)/ClientApp/dist'
|
||
|
|
||
|
|
||
|
- task: ArchiveFiles@2
|
||
|
displayName: Zip $(parameters.name)
|
||
|
inputs:
|
||
|
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
||
|
includeRootFolder: false
|
||
|
archiveType: 'zip'
|
||
|
archiveFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)-$(Build.BuildId).zip'
|
||
|
replaceExistingArchive: true
|