Hi, I am trying to deploy a page generated with Nuxt.js. Basically all the webpage has already been generated into the /dist folder and uploaded to the repository. Now, I would need to deploy to page just the /dist
I tried with gitlab-ci.yml is as following:
pages:
before_script:
- cd /dist
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
But it gives an error
No such file or directory
ERROR: Job failed: exit code 1
I already accesed the project at username.gitlab.io/project/dist , but there i have problems with the routes, so I would really need to deploy to username.gitlab.io/project/
Thanks in advance!