Cp: cannot stat '*': No such file or directory

I’m following the tutorial how to setup a website in gitlab https://about.gitlab.com/2016/04/07/gitlab-pages-setup/#add-gitlab-ci
At "Option A: GitLab CI for plain HTML websites " I followed and created the excat file .gitlab-ci.yml but my pipeline is failing

Running with gitlab-runner 12.0.2 (xxx)
  on docker-auto-scale xxx
Using Docker executor with image ruby:2.5 ...
Pulling docker image ruby:2.5 ...
Using docker image sha256:xxx for ruby:2.5 ...
Running on runner-xxx-concurrent-0 via runner-xxx...
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/xxx/apk/.git/
Created fresh repository.
From https://gitlab.com/xxx/apk
 * [new branch]      master     -> origin/master
Checking out 4e26a7f8 as master...

Skipping Git submodules setup
$ mkdir .public
$ cp -r * .public
cp: cannot stat '*': No such file or directory
ERROR: Job failed: exit code 1

Why is that happen? I don’t understand

Nevermind. I solved it.
You must have at least 1 file in your repo