-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathazure-pipelines.yml
75 lines (57 loc) · 1.7 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# https://peakswc.visualstudio.com/
# https://medium.com/@dan.cokely/creating-nuget-packages-in-azure-devops-with-azure-pipelines-and-yaml-d6fa30f0f15e
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'x64'
buildConfiguration: 'MinSizeRel'
steps:
- task: projectversionasvariable@1
inputs:
path: 'Directory.Build.props'
versionTag: 'VersionPrefix'
# - task: NuGetToolInstaller@1
#Build RemoteWebViewService Nuget Package
- task: DotNetCoreCLI@2
displayName: 'Build RemoteWebViewService'
inputs:
command: build
projects: 'src\RemoteWebViewService\RemoteWebViewService.csproj'
arguments: '--configuration $(buildConfiguration)'
#Package RemoteWebViewService Nuget Package
- task: DotNetCoreCLI@2
displayName: 'Package RemoteWebViewService'
inputs:
command: pack
packagesToPack: 'src\RemoteWebViewService\RemoteWebViewService.csproj '
versioningScheme: byPrereleaseNumber
majorVersion: $(Version.Major)
minorVersion: $(Version.Minor)
patchVersion: $(Version.Patch)
- task: Npm@1
inputs:
command: 'install'
workingDir: 'src\RemoteWebView.Blazor.JS'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: NuGetCommand@2
displayName: 'NuGet push packages'
inputs:
command: push
publishVstsFeed: 'RemoteBlazorWebView/Nugets2'
allowPackageConflicts: false
packagesToPush: 'artifacts/*.nupkg'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'artifacts'
ArtifactName: 'dropNugets'
publishLocation: 'Container'