title: Auto-Deploy from Gitlab to Server results in an empty folder
body: <p><strong>The issue</strong><br>
  I'm trying to deploy a single static page on my Linux Server (Debian 9.5 with VestaCP) using a gitlab runner. I followed <a href="https://www.youtube.com/watch?v=iQbENcbPtDo" rel="nofollow noreferrer">this tutorial</a> and even though everything goes fine (the job is marked as &quot;Passed&quot; either on commit or when I manually run the task), the final result is that the destination folder (/web/bue.nico.ar/public_html/testgit) is actually empty.</p>
  <p><strong>.gitlab-ci.yml file content</strong></p>
  <pre><code>stages:
    - deploy
  deploy:
    stage: deploy
    script:
      - if [&quot;$CI_COMMIT_REF_NAME&quot; == &quot;master&quot;]; then cp -R ./web/bue.nico.ar/public_html/testgit; fi
  </code></pre>
  <p><strong>Output from Gitlab</strong><br> <a href="https://i.stack.imgur.com/kVuNn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kVuNn.png" alt="Screenshot from Gitlab output" /></a></p>