forked from Discord-Net-Labs/Discord.Net-Labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (38 loc) · 912 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
variables:
buildConfiguration: Release
buildTag: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
buildNumber: $[ variables['Build.BuildNumber'] ]
suffix: $(Date:yyyyMMdd)
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/release/3.x')
steps:
- template: azure/build.yml
- job: Windows_deploy
pool:
vmImage: "windows-latest"
condition: |
and (
succeeded(),
or (
eq(variables['Build.SourceBranch'], 'refs/heads/release/3.x'),
eq(variables['buildTag'], True)
)
)
steps:
- template: azure/build.yml
- template: azure/deploy.yml