forked from buttplugio/buttplug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (41 loc) · 1.24 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
trigger:
- master
variables:
buildNum: $[ counter() ]
jobs:
- job: "Linux"
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
yarn
displayName: 'Install packages'
env: { "CI": "true" }
- script: |
yarn build
displayName: 'Build JSON version of device file'
env: { "CI": "true" }
- task: CopyFiles@2
displayName: "Copy config files to staging"
inputs:
contents: "$(System.DefaultWorkingDirectory)/buttplug-device-config.*"
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@0
displayName: "Publish artifacts"
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'config'
- task: GitHubRelease@0
displayName: Upload device config release to Github if files changed
inputs:
gitHubConnection: "release"
repositoryName: "buttplugio/buttplug-device-config"
action: "create"
tagSource: "manual"
tag: "v$(buildNum)"
title: "Buttplug Device Config File Version $(buildNum)"
assets: "$(Build.ArtifactStagingDirectory)/*"