GitLab Pages deployment step fails after successfull build

假如想象 提交于 2019-12-04 06:01:59

Apparently a page can only be published from a folder in under the artifacts that is called "public".

From the GitLab Pages documentation:

To make use of GitLab Pages, the contents of .gitlab-ci.yml must follow the rules below:

  1. A special job named pages must be defined
  2. Any static content which will be served by GitLab Pages must be placed under a public/ directory
  3. artifacts with a path to the public/ directory must be defined

Also mentioned (somewhat tangentially) in the "GitLab Pages from A to Z" guide:

... and GitLab Pages will only consider files in a directory called public.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!