成功构建后,GitLab Pages部署步骤失败

成功构建后,GitLab Pages部署步骤失败

问题描述:

我正在尝试通过gitlab页面来托管reveal.js演示文稿.可以在以下位置找到该存储库: https://gitlab.com/JanGregor/demo-slides

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

我的.gitlab-ci.yml非常简单:

image: node:4.2.2

pages:
  cache:
    paths:
    - node_modules/
  script:
  - npm install
  - node_modules/.bin/gulp
  artifacts:
    paths:
    - build
  only:
  - master

但是在提交给master之后,出了点问题. pages任务本身是已执行并可以正常运行.它甚至在日志中显示我的构建目录已被扫描并且已找到伪像.

After a commit to master though, something goes wrong. The pages task itself is executed and runs just fine. It even shows in the logs that my build directory has been scanned and that the artefacts have been found.

奇怪的是,随后的pages:deploy任务失败.它只说:

Oddly, the subsequent pages:deploy task fails. It only says :

页面无法提取

pages failed to extract

任何帮助将不胜感激,因为我不知道下一步要去哪里.尝试使用npm实施部署流程时,文档本身并没有真正的帮助.

Any help would be greatly appreciated, since I have no clue where to look to next. The documentation itself isn't really helpful when trying to implement an deployment flow with npm.

在此先感谢大家!

显然,只能从称为公共"的工件下的文件夹中发布页面.

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