Created
May 15, 2019 19:49
-
-
Save saibimajdi/882fe3c22b58de182ba75a2270652e56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: 'vs2017-win2016' | |
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