-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
42 lines (36 loc) · 1.02 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
jobs:
- job: PR
pool:
vmImage: 'macOS-10.14'
strategy:
maxParallel: 10
matrix:
node-10:
node_version: ^10.6.0
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js 🐍'
- script: |
npm install
displayName: 'Install dependencies'
- script: |
npm run all
displayName: 'Run everything 🥾'
- task: CopyFilesOverSSH@0
displayName: 'Moving online 💁♀️'
inputs:
sshEndpoint: ScriptConf
sourceFolder: ./out
contents: '**'
targetFolder: /var/www/scriptconf.org/dist
cleanTargetFolder: true # Optional
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
#overwrite: true # Optional
#failOnEmptySource: false # Optional
#flattenFolders: false # Optional