-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
57 lines (49 loc) · 1.29 KB
/
azure-pipelines.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
49
50
51
52
53
54
55
56
57
trigger:
- master
pool: 'WindowsPool'
variables:
solution: '**/*.csproj'
runtime: 'win-x64'
configuration: 'Release'
steps:
- task: replacetokens@5
inputs:
targetFiles: '**/appsettings.json'
encoding: 'auto'
writeBOM: true
actionOnMissing: 'warn'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
actionOnNoFiles: 'fail'
- task: UseDotNet@2
displayName: 'Use .Net Core SDK 6.0'
inputs:
packageType: sdk
version: 6.0.x
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet Packages'
inputs:
command: 'restore'
projects: '$(solution)'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: 'Build DTPIT App'
inputs:
command: 'build'
projects: '$(solution)'
arguments: '-c $(configuration) -r $(runtime)'
- task: DotNetCoreCLI@2
displayName: 'Take release for Windows x64'
inputs:
command: 'publish'
publishWebProjects: false
projects: '$(solution)'
arguments: '-c $(configuration) -r $(runtime) -o $(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Personal-Info-Tracker'
publishLocation: 'Container'