Update publish-os-steps.yml

pull/3435/head
Matt Jeanes 5 years ago committed by GitHub
parent faa27ee3e9
commit 4edb6ed8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save