forked from safakgur/guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
42 lines (34 loc) · 980 Bytes
/
.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
jobs:
- template: .azure-pipelines-build.yml
parameters:
name: Windows
image: windows-latest
artifacts: true
- template: .azure-pipelines-build.yml
parameters:
name: macOS
image: macOS-latest
- template: .azure-pipelines-build.yml
parameters:
name: Linux
image: ubuntu-latest
- job: Deploy
pool:
vmImage: ubuntu-latest
dependsOn:
- Windows
- macOS
- Linux
steps:
- script: git checkout $(Build.SourceBranchName)
displayName: Checkout Branch
- task: DownloadBuildArtifacts@0
inputs:
artifactName: all
- script: bash <(curl -s https://codecov.io/bash) -f $(System.ArtifactsDirectory)/all/coverage.xml
displayName: Upload Coverage
env:
CODECOV_TOKEN: $(codecov.token)
- script: dotnet nuget push $(System.ArtifactsDirectory)/all/Dawn.Guard.*.nupkg -s $(nuget.server) -k $(nuget.token)
condition: eq(variables['Build.SourceBranchName'], 'master')
displayName: Publish NuGet Package