Skip to content

Commit

Permalink
Merge 5138573 into 2402d64
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Oct 4, 2019
2 parents 2402d64 + 5138573 commit ac918a6
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,61 @@
trigger:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '10.x'

- script: npm install
displayName: 'Install dependencies'

- script: npm run build
displayName: 'Transpile files'

- script: npm test
displayName: 'Run tests'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
npm i
npm run build
workingDirectory: 'website'
displayName: 'Build docs'

- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: 'hvps'
sourceFolder: 'website/build/react-tidy'
contents: '**'
targetFolder: '/var/www/html/react-tidy'
cleanTargetFolder: true
displayName: 'Deploy docs'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))


- task: GitHubRelease@1
displayName: Create Github release
inputs:
gitHubConnection: 'release'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(Build.BuildNumber)'
isPreRelease: true
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

- task: Npm@1
inputs:
command: 'publish'
workingDir: '.'
publishEndpoint: 'npm'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

0 comments on commit ac918a6

Please sign in to comment.