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

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

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

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