Hello, I have created a hugo site. The way I have things configured now, My source is managed by one Git repo, while the /public (which will be served) is another Git repo I am attempting to use for Gitlab pages, but the CI keeps failing and I can’t work out why.
.gitlab-ci.yml
image: alpine:latest
pages:
stage: deploy
script:
- echo 'Nothing to do for plain HTML...'
artifacts:
paths:
- public
only:
- master
I based the file off this example for serving plain HTML on Gitlab Pages
Here is the output on the pages pipeline:
` on docker-auto-scale 72989761` ` feature flags: FF_GITLAB_REGISTRY_HELPER_IMAGE:true ` `Resolving secrets
00:00
` `Preparing the "docker+machine" executor
00:09
` `Using Docker executor with image alpine:latest ...` `Pulling docker image alpine:latest ...` `Using docker image sha256:49f356fa4513676c5e22e3a8404aad6c7262cc7aaed15341458265320786c58c for alpine:latest with digest alpine@sha256:ec14c7992a97fc11425907e908340c6c3d6ff602f5f13d899e6b7027c9b4133a ... ` `Preparing environment
00:01
` `Running on runner-72989761-project-25837132-concurrent-0 via runner-72989761-srm-1618257485-44fd1980... ` `Getting source from Git repository
00:02
` `$ eval "$CI_PRE_CLONE_SCRIPT"` `Fetching changes with git depth set to 50...` `Initialized empty Git repository in /builds/ryder-d/ryder-d.gitlab.io/.git/` `Created fresh repository.` `Checking out 41d86fdc as master...` `Skipping Git submodules setup ` `Executing "step_script" stage of the job script
00:01
` `Using docker image sha256:49f356fa4513676c5e22e3a8404aad6c7262cc7aaed15341458265320786c58c for alpine:latest with digest alpine@sha256:ec14c7992a97fc11425907e908340c6c3d6ff602f5f13d899e6b7027c9b4133a ...` `$ echo 'Nothing to do for plain HTML...'` `Nothing to do for plain HTML... ` `Uploading artifacts for successful job
00:01
` `Uploading artifacts...` `WARNING: public: no matching files ` `ERROR: No files to upload ` `Cleaning up file based variables
00:01
` `Job succeeded`
The pages:deploy
fails with missing pages artifacts