-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
42 lines (34 loc) · 1.05 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
# Azure DevOps Build Pipeline for FuncyDown
trigger:
- '*'
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: "Use .NET Core 8.x"
inputs:
version: '8.x'
packageType: sdk
- task: DotNetCoreCLI@2
displayName: 'Run Unit-Tests'
inputs:
command: test
projects: '**/*test/*.fsproj'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
- task: DotNetCoreCLI@2
displayName: 'Pack Nuget Package'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: 'pack'
packagesToPack: '**\src\**\FuncyDown.fsproj'
configuration: $(buildConfiguration)
- task: NuGetCommand@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: push
nuGetFeedType: external
allowPackageConflicts: true
publishFeedCredentials: 'Nuget.org'
packagesToPush: '$(build.artifactStagingDirectory)/*.nupkg'