diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d18bf814c6c741527055ff5675dd6db6745d1cc9..ecf09efdaf471edc26474a2f78e98ed063b9baad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,7 +115,7 @@ deploy-dev:
     # remove the old version from dev and test
     - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*"
     - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/test/frontend/website/*"
-    - scp -o 'StrictHostKeyChecking no' -r public/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
+    - scp -o 'StrictHostKeyChecking no' -r public/$CI_COMMIT_REF_NAME/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
     - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "cp -r ~/$CI_COMMIT_REF_NAME/frontend/website/* ~/test/frontend/website/"
 
 # this stage creates a new environment for the current branch.