Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pool:
- vmImage: Hosted VS2017
- demands: npm
- steps:
- - script: |
- echo Write your commands here
- mkdir dist
- echo Use the environment variables input below to pass secret variables to this script
- displayName: 'Command - mkdir dist'
- - task: Npm@1
- displayName: 'npm install'
- inputs:
- verbose: false
- - task: Npm@1
- displayName: 'npm build'
- inputs:
- command: custom
- verbose: false
- customCommand: 'build --prod'
- - task: PublishBuildArtifacts@1
- displayName: 'Publish Artifact: dist'
- inputs:
- PathtoPublish: dist
- ArtifactName: dist
- - task: FtpUpload@1
- displayName: 'FTP Upload: dist'
- inputs:
- credentialsOption: inputs
- serverUrl: ‘xxx’
- username: Tester2
- password: 'Tester$2'
- rootDirectory: dist
- filePatterns: '*'
- remoteDirectory: /
- trustSSL: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement