gitlab-pages:没有要存档的文件(工件),所以没有网站
gitlab-pages: no files (artifacts) to archive, so no website
我正在尝试使用 gitlab-pages 发布一个静态网站。我仔细地从 the official jekyll example to write my own gitlab-ci.yml 中获取了灵感。
我的 build succeeds,一个 ls -l
显示我有一个 public/
存储库,但是我有消息 "archiving artifacts… no files to archive" 因此我找不到我的网站在 myusername.gitlab.com/myproject
.
我查了一下官方的例子still works。 (但是……我找不到它在哪里发布!)
我在 irc 和 gitter 上都没有得到帮助。
你有什么想法吗?谢谢!
可能是设置问题?文档说明要启用页面功能,但几乎没有任何复选框可以单击。
ps:这可能与 https://gitlab.com/gitlab-com/support-forum/issues/456 有关,我看到它已针对 v8.3.3 修复。
我相信您问题的答案比您想象的要简单。
您的网站将发布于
https://username.gitlab.io/project_name
明白了吗?不是gitlab.com
! :)
别担心,GitLab 页面的新指南即将推出!
知道了! \o/
.gitlab-ci.yml
:
image: python:2.7.11
pages:
cache:
paths:
- vendor
script:
- pip install Lektor
- lektor build --output-path public
artifacts:
paths:
- public
only:
- master
更新
你也可以试试这个:
image: python:2.7
pages:
cache:
paths:
- vendor
stage: deploy
script:
- pip install Lektor
- lektor build --output-path public
artifacts:
paths:
- public
only:
- master
我看不出您需要 before_script:
命令,但如果需要,请添加 - pip install Lektor
。
我正在尝试使用 gitlab-pages 发布一个静态网站。我仔细地从 the official jekyll example to write my own gitlab-ci.yml 中获取了灵感。
我的 build succeeds,一个 ls -l
显示我有一个 public/
存储库,但是我有消息 "archiving artifacts… no files to archive" 因此我找不到我的网站在 myusername.gitlab.com/myproject
.
我查了一下官方的例子still works。 (但是……我找不到它在哪里发布!)
我在 irc 和 gitter 上都没有得到帮助。
你有什么想法吗?谢谢!
可能是设置问题?文档说明要启用页面功能,但几乎没有任何复选框可以单击。
ps:这可能与 https://gitlab.com/gitlab-com/support-forum/issues/456 有关,我看到它已针对 v8.3.3 修复。
我相信您问题的答案比您想象的要简单。
您的网站将发布于
https://username.gitlab.io/project_name
明白了吗?不是gitlab.com
! :)
别担心,GitLab 页面的新指南即将推出!
知道了! \o/
.gitlab-ci.yml
:
image: python:2.7.11
pages:
cache:
paths:
- vendor
script:
- pip install Lektor
- lektor build --output-path public
artifacts:
paths:
- public
only:
- master
更新
你也可以试试这个:
image: python:2.7
pages:
cache:
paths:
- vendor
stage: deploy
script:
- pip install Lektor
- lektor build --output-path public
artifacts:
paths:
- public
only:
- master
我看不出您需要 before_script:
命令,但如果需要,请添加 - pip install Lektor
。