Skip to content

Instantly share code, notes, and snippets.


JoeM-RP/azure-pipelines.yml Secret

Last active Jan 8, 2020
What would you like to do?
Sample yml file for Gatsby + contentful webpage using Azure Build Pipelines
# Node.js with React
# Build a Node.js project that uses React.
# Add steps that analyze code, save build artifacts, deploy, and more:
- master
vmImage: 'ubuntu-latest'
- task: NodeTool@0
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
CI=true npm run build
displayName: 'gatsby build'
- task: PublishBuildArtifacts@1
PathtoPublish: 'public' # public is the name of the default build output folder
ArtifactName: 'src/public' # this can be called anything you like
publishLocation: 'Container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.