成功构建后 GitLab Pages 部署步骤失败
GitLab Pages deployment step fails after successfull build
我正在尝试通过 gitlab 页面主持一个 reveal.js 演示文稿。存储库可以在这里找到: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 之后,出现了问题。页面任务本身是 executed and runs just fine。它甚至在日志中显示我的构建目录已被扫描并且已找到人工制品。
奇怪的是,随后的 pages:deploy
任务失败了。它只说:
pages failed to extract
任何帮助将不胜感激,因为我不知道下一步该去哪里。在尝试使用 npm 实施部署流程时,文档本身并没有多大帮助。
在此先感谢大家!
显然,页面只能从名为 "public" 的工件下的文件夹中发布。
To make use of GitLab Pages, the contents of .gitlab-ci.yml
must follow the rules below:
- A special job named
pages
must be defined
- Any static content which will be served by GitLab Pages must be placed under a
public/
directory
artifacts
with a path to the public/
directory must be defined
在 "GitLab Pages from A to Z" guide 中也提到(有点切线):
... and GitLab Pages will only consider files in a directory called public
.
我正在尝试通过 gitlab 页面主持一个 reveal.js 演示文稿。存储库可以在这里找到: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 之后,出现了问题。页面任务本身是 executed and runs just fine。它甚至在日志中显示我的构建目录已被扫描并且已找到人工制品。
奇怪的是,随后的 pages:deploy
任务失败了。它只说:
pages failed to extract
任何帮助将不胜感激,因为我不知道下一步该去哪里。在尝试使用 npm 实施部署流程时,文档本身并没有多大帮助。
在此先感谢大家!
显然,页面只能从名为 "public" 的工件下的文件夹中发布。
To make use of GitLab Pages, the contents of
.gitlab-ci.yml
must follow the rules below:
- A special job named
pages
must be defined- Any static content which will be served by GitLab Pages must be placed under a
public/
directoryartifacts
with a path to thepublic/
directory must be defined
在 "GitLab Pages from A to Z" guide 中也提到(有点切线):
... and GitLab Pages will only consider files in a directory called
public
.