|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
|
- name: name # defaults for any parameters that aren't specified
|
|
|
|
|
default: ''
|
|
|
|
|
- name: Runtime
|
|
|
|
|
default: ''
|
|
|
|
|
- name: OutputName
|
|
|
|
@ -18,7 +16,7 @@ jobs:
|
|
|
|
|
inputs:
|
|
|
|
|
command: 'publish'
|
|
|
|
|
publishWebProjects: true
|
|
|
|
|
arguments: '-c $(BuildConfiguration) -r "$(parameters.Runtime)" -o $(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
|
|
|
|
arguments: '-c $(BuildConfiguration) -r "${{ parameters.Runtime }}" -o $(Build.ArtifactStagingDirectory)/${{ parameters.OutputName }}'
|
|
|
|
|
zipAfterPublish: false
|
|
|
|
|
modifyOutputPath: false
|
|
|
|
|
|
|
|
|
@ -27,7 +25,7 @@ jobs:
|
|
|
|
|
inputs:
|
|
|
|
|
SourceFolder: '$(UILocation)dist'
|
|
|
|
|
Contents: '**'
|
|
|
|
|
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)/ClientApp/dist'
|
|
|
|
|
TargetFolder: '$(Build.ArtifactStagingDirectory)/${{ parameters.OutputName}}/ClientApp/dist'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
@ -36,5 +34,5 @@ jobs:
|
|
|
|
|
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
|
|
|
|
includeRootFolder: false
|
|
|
|
|
archiveType: 'zip'
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)-$(Build.BuildId).zip'
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/${{ parameters.OutputName }}-$(Build.BuildId).zip'
|
|
|
|
|
replaceExistingArchive: true
|
|
|
|
|