forked from mono/taglib-sharp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
48 lines (42 loc) · 1.34 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
variables:
majorVersion: '2.4.0'
minorVersion: $[counter('minorVersion', 20)]
version: '$(majorVersion).$(minorVersion)'
buildName: '$(Build.SourceBranchName).$(version)'
trigger:
branches:
include:
- master
pr:
- master
stages:
- stage: Build
jobs:
- job: TaglibSharp
pool:
vmImage: 'ubuntu-22.04'
steps:
- powershell: Write-Host "##vso[build.updatebuildnumber]$($env:VERSION)"
displayName: Set Build Name
- bash: |
sed -i'' -e "s/<Version>[0-9.*]\+<\/Version>/<Version>$VERSION<\/Version>/g" src/TaglibSharp/TaglibSharp.csproj
displayName: Set assembly version
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 6.x
- task: DotNetCoreCLI@2
displayName: .NET Standard 2.0
inputs:
command: 'build'
projects: 'TaglibSharp.sln'
arguments: '/p:Configuration=Release'
- task: NuGetCommand@2
enabled: true
inputs:
command: 'push'
packagesToPush: 'src/TaglibSharp/bin/Release/*.nupkg;!src/TaglibSharp/bin/Release/*.snupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '43582661-9ac3-4ec6-9583-209885d5ff34/25380ea9-0937-4346-9aa7-9d4a76b7e76c'
- publish: src/TaglibSharp/bin/Release
artifact: Packages