Skip to content
代码片段 群组 项目
未验证 提交 ac133657 编辑于 作者: Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason 提交者: GitLab
浏览文件

Merge branch 'ngala/pages-ci-templates-set-1' into 'master'

Update pages ci templates - Doxygen, HTML, Harp

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/144317



Merged-by: default avatarHordur Freyr Yngvason <hfyngvason@gitlab.com>
Approved-by: default avatarHordur Freyr Yngvason <hfyngvason@gitlab.com>
Co-authored-by: default avatarngala <ngala@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -7,9 +7,20 @@ default:
# Full project: https://gitlab.com/pages/doxygen
image: alpine
before_script:
- apk update
- apk add doxygen
## Uncomment the following line if you use graphviz dot graphs
# - apk add ttf-freefont graphviz
test:
script:
- doxygen doxygen/Doxyfile
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages:
script:
- apk update && apk add doxygen
- doxygen doxygen/Doxyfile
- mv doxygen/documentation/html/ public/
environment: production
......
......@@ -4,14 +4,13 @@
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/HTML.gitlab-ci.yml
# Full project: https://gitlab.com/pages/plain-html
image: busybox
pages:
stage: deploy
environment: production
script:
- mkdir .public
- cp -r ./* .public
- rm -rf public
- mv .public public
- echo "The site will be deployed to $CI_PAGES_URL"
artifacts:
paths:
- public
......
......@@ -5,15 +5,23 @@
default:
# Full project: https://gitlab.com/pages/harp
image: node:4.2.2
image: node:16
cache:
paths:
- node_modules
test:
script:
- npm install -g harp less
- harp source public
rules:
- if: '$CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "merge_request_event"'
pages:
cache:
paths:
- node_modules
script:
- npm install -g harp
- harp compile ./ public
- npm install -g harp less
- harp source public
artifacts:
paths:
- public
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册