我在.yml中有此配置
compile:public:
stage: compile
dependencies:
- build:modules
script:
- npm run build
cache:
key: public
paths:
- public/
staging:image:
stage: staging
image: nginx
cache:
key: public
paths:
- public/
script:
- cp public/ /usr/share/nginx/html
但是显示此错误
cp:无法设置为“ public /”:没有此类文件或目录
我该怎么办?