title: Gitlab Pipeline CI/CD .gitlab-ci.yml for Angular
body: <p>I am new to CD with Gitlab and wants to add pipeline for Angular. Everything is working fine except I cannot be able to copy the dist folder from one location to another using the following commands mentioned below.</p>
  <p>Below is my yml file</p>
  <pre><code>image: node:latest
  cache:
    paths:
      - node_modules/
  deploy_stage:
    stage: deploy
    environment: staging
    only:
      - staging
    script:
      - echo &quot;$(ls -la)&quot;
      - npm install
      - npm install -g @angular/cli
      - ng build --prod --build-optimizer --progress=false
      - echo &quot;$(ls -la dist/)&quot;
    artifacts:
      expire_in: 1 day
      paths:
        - cp -R ~/builds/KtpUrx12/0/root/admin/dist/ /var/www/vhosts/domain.com/staging.domain.com
        - chown -R myadmin:admin /var/www/vhosts/domain.com/staging.domain.com
  </code></pre>
  <p>The copy command is giving me the error of &quot;no matching files&quot;. Also, the same error I am getting for chown.</p>
  <p>What I'am doing wrong? Thank you in advance!</p>