Applied single file publish

pull/3862/head
tidusjar 4 years ago
parent 6b668c62d6
commit 056a7b48aa

@ -5,7 +5,7 @@ steps:
displayName: 'Use .NET Core sdk ' displayName: 'Use .NET Core sdk '
inputs: inputs:
packageType: 'sdk' packageType: 'sdk'
version: '3.x' version: '5.x'
- task: Yarn@3 - task: Yarn@3
displayName: 'Install UI Dependancies' displayName: 'Install UI Dependancies'

@ -3,7 +3,7 @@ steps:
displayName: 'Use .NET Core sdk ' displayName: 'Use .NET Core sdk '
inputs: inputs:
packageType: 'sdk' packageType: 'sdk'
version: '3.x' version: '5.x'
- task: DotNetCoreInstaller@1 - task: DotNetCoreInstaller@1
displayName: 'Use .NET Core sdk for versioning' displayName: 'Use .NET Core sdk for versioning'
@ -24,7 +24,7 @@ steps:
inputs: inputs:
command: 'publish' command: 'publish'
publishWebProjects: true publishWebProjects: true
arguments: '-c $(BuildConfiguration) -r "$(runtime)" -o $(Build.ArtifactStagingDirectory)/$(runtime)' arguments: '-c $(BuildConfiguration) -r "$(runtime)" -o $(Build.ArtifactStagingDirectory)/$(runtime)' --self-contained true -p:PublishSingleFile=true
zipAfterPublish: false zipAfterPublish: false
modifyOutputPath: false modifyOutputPath: false

@ -12,7 +12,7 @@ variables:
value: "**/*.Tests.csproj" value: "**/*.Tests.csproj"
- name: "NetCoreVersion" - name: "NetCoreVersion"
value: "3.1" value: "5.0"
- name: "PublishLocation" - name: "PublishLocation"
value: "$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp$(NetCoreVersion)" value: "$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp$(NetCoreVersion)"

Loading…
Cancel
Save