Fin*_*eur 7 pandoc gitlab-ci hugo gitlab-pages
我创建了一个Gitlab CI作业,用于pandoc
创建一些HTML和PDF资产,我希望将这些资产部署到由Gitlab Pages托管的Hugo网站上。
在.gitlab-ci.yml
我的工作中看起来像这样:
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
stages:
- test
- deploy
- build
variables:
GIT_SUBMODULE_STRATEGY: recursive
test:
image: registry.gitlab.com/pages/hugo:latest
stage: test
script:
- hugo
except:
- master
assets:
stage: build
image:
name: pandoc/latex:2.6
entrypoint: ["/bin/sh", "-c"]
before_script:
- apk add bash
- apk add zip
- chmod +x ci-build.sh
script:
- ./ci-build.sh
artifacts:
paths:
- public
pages:
image: registry.gitlab.com/pages/hugo:latest
stage: deploy
script:
- hugo
artifacts:
paths:
- public
only:
- master
Run Code Online (Sandbox Code Playgroud)
但是,此作业生成的资产似乎未部署到我的站点,因为在尝试访问它们时收到404。
我尝试设置工件路径,但出现此错误:
artifacts:
paths:
- public
Run Code Online (Sandbox Code Playgroud)
Uploading artifacts...
public: found 369 matching files
Uploading artifacts to coordinator... ok id=281690834 responseStatus=201 Created token=56oqTg7A
Job succeeded
Run Code Online (Sandbox Code Playgroud)
我真的很想弄清楚这一点,因此不必跟踪Git中的资产。非常感激任何的帮助!
归档时间: |
|
查看次数: |
175 次 |
最近记录: |