forked from discord-net/Discord.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
42 lines (38 loc) · 850 Bytes
/
azure-pipelines.yml
File metadata and controls
42 lines (38 loc) · 850 Bytes
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
variables:
buildConfiguration: Release
buildTag: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
buildNumber: $[ variables['Build.BuildNumber'] ]
trigger:
tags:
include:
- '*'
branches:
include:
- '*'
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- template: azure/build.yml
- job: Windows_build
pool:
vmImage: 'windows-latest'
condition: ne(variables['Build.SourceBranch'], 'refs/heads/dev')
steps:
- template: azure/build.yml
- job: Windows_deploy
pool:
vmImage: 'windows-latest'
condition: |
and (
succeeded(),
or (
eq(variables['Build.SourceBranch'], 'refs/heads/dev'),
eq(variables['buildTag'], True)
)
)
steps:
- template: azure/build.yml
- template: azure/deploy.yml
- template: azure/docs.yml