GitLab Pages deployment step fails after successfull build

后端 未结 2 1202
醉酒成梦
醉酒成梦 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.

    0 讨论(0)
  • 2021-02-20 16:06

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

    0 讨论(0)
提交回复
热议问题