Skip to content

Instantly share code, notes, and snippets.

@VelinGeorgiev
Created April 27, 2019 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VelinGeorgiev/877cafa5bd5ed6aac46255bfb58f2e90 to your computer and use it in GitHub Desktop.
Save VelinGeorgiev/877cafa5bd5ed6aac46255bfb58f2e90 to your computer and use it in GitHub Desktop.
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish $(buildConfiguration)'
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'publish artifacts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment