-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
39 lines (33 loc) · 1.06 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
name: $(Year:yy).$(DayOfYear).$(Rev:rr)
steps:
- script: dotnet build --configuration $(build-configuration)
displayName: 'dotnet build $(build-configuration)'
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: '**/*.csproj'
configuration: '$(build-configuration)'
nobuild: true
versioningScheme: 'byBuildNumber'
verbosityPack: 'Diagnostic'
- script: dotnet nuget push $(Build.ArtifactStagingDirectory)/*.nupkg -k $(nuget-apikey) -s $(nuget-url)
displayName: 'dotnet nuget push $(Build.ArtifactStagingDirectory)/*.nupkg'
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
arguments: '-c $(build-configuration) -o $(build-dir) -r $(windows-os)'
- task: CopyFiles@1
inputs:
Contents: '**/$(build-dir)/**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'