forked from neolution-ch/Neolution.CodeAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
45 lines (35 loc) · 1.02 KB
/
azure-pipelines.yml
File metadata and controls
45 lines (35 loc) · 1.02 KB
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
# 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
pool:
vmImage: 'ubuntu-latest'
trigger:
- master
- release/*
variables:
buildConfiguration: 'Release'
steps:
- task: gitversion/setup@0
displayName: Install GitVersion
inputs:
versionSpec: '5.x'
- task: gitversion/execute@0
displayName: Execute GitVersion
- task: PowerShell@2
displayName: Update Build Number
inputs:
targetType: 'inline'
script: 'Write-Host "##vso[build.updatebuildnumber]$(NuGetVersion)"'
- bash: 'sed -i -e "s/{{NuGetVersion}}/$(NuGetVersion)/g" *.nuspec **/*.targets'
displayName: 'Replace version number'
- task: NuGetCommand@2
displayName: 'NuGet pack'
inputs:
command: pack
packagesToPack: '*.nuspec'
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
publishVstsFeed: 'dc68f94e-847b-4595-86ba-405d5744b21d'