GitLab Pages deployment step fails after successfull build

后端 未结 2 1203
醉酒成梦
醉酒成梦 2021-02-20 15:36

I am trying to host a reveal.js presentation via gitlab pages. The repository can be found here: https://gitlab.com/JanGregor/demo-slides

My .gitlab-ci.yml

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-20 15:55

    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.

提交回复
热议问题