Skip to content

Commit

Permalink
Applied single file publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Nov 10, 2020
1 parent 6b668c6 commit 056a7b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .azuredevops/pipelines/templates/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
displayName: 'Use .NET Core sdk '
inputs:
packageType: 'sdk'
version: '3.x'
version: '5.x'

- task: Yarn@3
displayName: 'Install UI Dependancies'
Expand All @@ -18,7 +18,7 @@ steps:
inputs:
projectDirectory: '$(UiLocation)'
arguments: 'run build'

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(UiLocation)dist'
Expand All @@ -31,4 +31,4 @@ steps:
command: 'custom'
projects: '$(TestProject)'
custom: 'test'
continueOnError: false
continueOnError: false
12 changes: 6 additions & 6 deletions .azuredevops/pipelines/templates/publish-os-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
displayName: 'Use .NET Core sdk '
inputs:
packageType: 'sdk'
version: '3.x'
version: '5.x'

- task: DotNetCoreInstaller@1
displayName: 'Use .NET Core sdk for versioning'
Expand All @@ -24,23 +24,23 @@ steps:
inputs:
command: 'publish'
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
modifyOutputPath: false

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'angular_dist'
targetPath: '$(Build.ArtifactStagingDirectory)/angular_dist'

- task: CopyFiles@2
displayName: 'Copy Angular App $(runtime)'
inputs:
SourceFolder: '$(Build.ArtifactStagingDirectory)/angular_dist'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(runtime)/ClientApp/dist'

- task: ArchiveFiles@2
displayName: 'Zip $(runtime)'
inputs:
Expand All @@ -49,7 +49,7 @@ steps:
archiveType: $(compression)
archiveFile: '$(Build.ArtifactStagingDirectory)/$(runtime).$(format)'
replaceExistingArchive: true

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/$(runtime).$(format)'
Expand Down
2 changes: 1 addition & 1 deletion .azuredevops/pipelines/templates/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variables:
value: "**/*.Tests.csproj"

- name: "NetCoreVersion"
value: "3.1"
value: "5.0"

- name: "PublishLocation"
value: "$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp$(NetCoreVersion)"
Expand Down

0 comments on commit 056a7b4

Please sign in to comment.