This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
54 lines (53 loc) · 1.7 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
trigger:
- master
- dev
jobs:
- job: "MacOS"
pool:
vmImage: 'macos-10.13'
steps:
- template: 'build/build-test-freeze.yml'
parameters:
platform: "macos-x64"
- job: "Linux"
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: 'build/build-test-freeze.yml'
parameters:
platform: "linux-x64"
- job: Deploy
dependsOn:
- MacOS
- Linux
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/dev')))
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: DownloadPipelineArtifact@1
displayName: Download Artifacts from other jobs
inputs:
buildType: 'current'
- task: GitHubRelease@0
displayName: Upload CLI Prereleases to Github
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
inputs:
gitHubConnection: "release"
repositoryName: "intiface/intiface-cli-node"
action: "edit"
tagSource: "manual"
tag: "420.69.666"
title: "Buttplug JS CLI Prerelease"
assets: "$(System.ArtifactsDirectory)/**/*.zip"
isPreRelease: true
- task: GitHubRelease@0
displayName: Upload CLI releases to Github
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
gitHubConnection: "release"
repositoryName: "intiface/intiface-cli-node"
action: "create"
tagSource: "auto"
title: "Buttplug JS CLI Release"
assets: "$(System.ArtifactsDirectory)/**/*.zip"
isPreRelease: false