-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.mvc.yml
48 lines (40 loc) · 1.2 KB
/
azure-pipelines.mvc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This pipeline creates an artifact of a runnable Mvc site if the Blog Template
name: $(Date:yyyyMMdd)$(Rev:-r)
pool:
vmImage: "windows-latest"
pr:
branches:
include:
- develop
- feature/*
trigger:
branches:
include:
- main
- develop
steps:
- task: DotNetCoreCLI@2
displayName: "restore dependencies"
inputs:
command: "restore"
projects: "src/src/Mvc/App/BlogTemplate.Mvc.App.csproj"
# NOTE: MSBuild executes npm build tasks for us
- task: DotNetCoreCLI@2
displayName: "build mvc"
inputs:
command: "build"
projects: "src/src/Mvc/App/BlogTemplate.Mvc.App.csproj"
arguments: "-c Release --no-restore"
- task: DotNetCoreCLI@2
displayName: "create deployable"
inputs:
command: "publish"
publishWebProjects: false
projects: "src/src/Mvc/App/BlogTemplate.Mvc.App.csproj"
arguments: '-c Release -o "$(build.artifactstagingdirectory)" --no-build'
# TODO: add appsettings.bzs-dev.json to mvc artifact from DevOps Secrets
- task: PublishBuildArtifacts@1
displayName: "publish artifact"
inputs:
PathtoPublish: "$(build.artifactstagingdirectory)"
ArtifactName: "blogtemplate-mvc"