Skip to content

Commit

Permalink
Use "dotnet publish" instead of "dotnet build" in build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Scepheo committed Jun 5, 2019
1 parent 2d8290a commit 4a562ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ steps:
includePreviewVersions: true

- task: DotNetCoreCLI@2
displayName: 'Build solution'
displayName: 'DotNet publish'
inputs:
command: build
projects: '**/*.csproj'
command: publish
projects: 'src/GitMan/GitMan.csproj'
arguments: '--configuration Release --output $(Build.ArtifactStagingDirectory)'
publishWebProjects: false

- task: PublishBuildArtifacts@1
displayName: 'Publish build artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'GitMan'

0 comments on commit 4a562ed

Please sign in to comment.