forked from ZedGraph/ZedGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
56 lines (51 loc) · 1.3 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
49
50
51
52
53
54
55
56
# Continuous Integration (CI) for PW.ZedGraph
# Triggered when pushing to the "master" or "develop" branch
trigger:
batch: true
branches:
include:
- master
- develop
tags:
include:
- 'v*'
paths:
exclude:
- .gitignore
- CHANGELOG.md
- License-LGPL.txt
- logo-200x200.png
- README.md
- ToDo.txt
# Use templates from the Utilities/PipelinesTemplates repository
resources:
repositories:
- repository: PipelinesTemplates
type: git
name: Utilities/PipelinesTemplates
ref: refs/tags/v2.1.0
# Pipeline name
name: PW.ZedGraph.$(Build.BuildId)
stages:
- stage: Build
jobs:
- template: /DotNet/Build+Test.yml@PipelinesTemplates
parameters:
projectTitle: PW.ZedGraph
vmImage: windows-latest
setVersionFromGitTag: true
libraryTitle: Libraries
libraryProjects: |
**/ZedGraph/*.csproj
**/ZedGraph.WinForms/*.csproj
# Only publish package(s) from a version-tagged commit
- ${{ if contains(variables['Build.SourceBranch'], 'refs/tags/v') }}:
- stage: Publish
jobs:
- template: /DotNet/PublishNuGet.yml@PipelinesTemplates
parameters:
projectTitle: PW.ZedGraph
packageTitle: Packages
environment: Publish-PW_ZedGraph-Env
packagesToPublish: |
**/PW.ZedGraph.*.nupkg