forked from rajsite/webvi-experiments
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
68 lines (66 loc) · 1.86 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
57
58
59
60
61
62
63
64
65
66
67
68
trigger:
- master
# Task list https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/index?view=azure-devops
jobs:
- job: build
timeoutInMinutes: 0
pool:
vmImage: 'vs2017-win2016'
steps:
- task: PowerShell@2
displayName: Lint markdown
inputs:
targetType: inline
script: |
npm ci
npm test
- task: PowerShell@2
displayName: Install LabVIEW NXG
inputs:
targetType: 'filePath'
filePath: '.\AzurePipelines\install.ps1'
- task: PowerShell@2
displayName: Build LabVIEW Projects
inputs:
targetType: 'filePath'
filePath: '.\AzurePipelines\build.ps1'
arguments: ' -usemonitor'
- task: PowerShell@2
displayName: Create GitHub Pages Output
inputs:
targetType: 'filePath'
filePath: '.\AzurePipelines\ghpages.ps1'
- task: CopyFiles@2
inputs:
contents: 'ghpagesarchive\ghpages.zip'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: ghpages
- job: deploy
dependsOn: build
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: DownloadBuildArtifacts@0
inputs:
downloadType: 'single'
artifactName: ghpages
downloadPath: '$(Agent.BuildDirectory)'
- task: ExtractFiles@1
displayName: 'Extract files'
inputs:
archiveFilePatterns: '$(Agent.BuildDirectory)/ghpages/ghpagesarchive/ghpages.zip'
destinationFolder: '$(Agent.BuildDirectory)/ghpagesout'
- task: UseRubyVersion@0
inputs:
versionSpec: '>=2.4'
- task: Bash@3
env:
TRAVIS_REPO_SLUG: rajsite/webvi-experiments
GHPAGESTOKEN: $(ghpagestokensecret)
inputs:
targetType: 'filePath'
filePath: './AzurePipelines/deploy.sh'
workingDirectory: '$(Agent.BuildDirectory)/ghpagesout'