xonecas.io
4114
Xi

xonecas.gitlab.io / commit 546b52f

Adds Hugo CI file for pages

xonecas2022-01-07 546b52f5f273729965cd3adef4f4dc36989c8b66 parent 07d98d4

1 file changed

.gitlab-ci.yml+30−0
@@ -0,0 +1,30 @@
1+# This file is a template, and might need editing before it works on your project.
2+# To contribute improvements to CI/CD templates, please follow the Development guide at:
3+# https://docs.gitlab.com/ee/development/cicd/templates.html
4+# This specific template is located at:
5+# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/Hugo.gitlab-ci.yml
6+
7+---
8+# All available Hugo versions are listed here:
9+# https://gitlab.com/pages/hugo/container_registry
10+image: registry.gitlab.com/pages/hugo:latest
11+
12+variables:
13+ GIT_SUBMODULE_STRATEGY: recursive
14+
15+test:
16+ script:
17+ - hugo
18+ except:
19+ variables:
20+ - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
21+
22+pages:
23+ script:
24+ - hugo
25+ artifacts:
26+ paths:
27+ - public
28+ only:
29+ variables:
30+ - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH