成功构建后 GitLab Pages 部署步骤失败 [英] GitLab Pages deployment step fails after successfull build

查看:34
本文介绍了成功构建后 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 :

页面提取失败

任何帮助将不胜感激,因为我不知道下一步该去哪里.在尝试使用 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.

提前谢谢各位!

推荐答案

显然页面只能从名为public"的工件下的文件夹中发布.

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

这篇关于成功构建后 GitLab Pages 部署步骤失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆