Skip to content

Instantly share code, notes, and snippets.

@hbulens
Last active June 1, 2020 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbulens/e41449268dd160cff9c19e5a23917dcb to your computer and use it in GitHub Desktop.
Save hbulens/e41449268dd160cff9c19e5a23917dcb to your computer and use it in GitHub Desktop.
# Node.js
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
yarn install
yarn build
workingDirectory: src/static-site-azure-app-service
displayName: 'yarn install and build'
- task: CopyFiles@2
inputs:
SourceFolder: 'src/static-site-azure-app-service/build'
Contents: '**'
TargetFolder: '$(build.artifactstagingdirectory)'
CleanTargetFolder: true
OverWrite: true
displayName: 'Copy output files'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
displayName: 'Publish output files'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment