title: Gitlab yaml to azure pipelines yaml file
body: <p>I'm trying to convert but after reading some sources im not sure how I can convert this part of yaml code that works with gitlab CI to azure pipelines yaml:</p>
  
  <pre><code>build:
    stage: build
    script:
      - npm run build
    artifacts:
      paths:
        - dist
    only:
      - master
  
  deploy:
    stage: deploy
    script:
      - npm i -g netlify-cli
      - netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod
    dependencies:
      - build
    only:
      - master
  </code></pre>
  
  <p>Especially I want to set the artifact path in the build stage and then somehow set that in the deploy stage.</p>
  
  <p>Here how it looks now in my azure-pipelines yaml:</p>
  
  <pre><code>- script: |
      npm run build
    displayName: 'Build'
  
  - script: |
      npm i -g netlify-cli
      netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod
    displayName: 'Deploy'
  </code></pre>