-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
32 lines (28 loc) · 867 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
image: python:3.8.2
variables:
GIT_SUBMODULE_STRATEGY: recursive
HUGO_VERSION: 0.68.3
lint_yaml_files:
script:
- pip install yamllint
- find . -type f -name '*.yml' | sed 's|\./||g' | egrep -v '(\.kitchen/|\[warning\]|\.molecule/)' | xargs yamllint -c yamllint.conf -f parsable
pages:
script:
- curl -SL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -o /tmp/hugo.tar.gz
- tar -xzf /tmp/hugo.tar.gz -C /tmp
- mv /tmp/hugo /usr/local/bin/
- hugo -s website -d ../public
- pip install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin
# For debugging in the pipeline logs
- mkdocs --version
# Gather all the doc files.
- ./prep_docs_for_publish.sh
- mkdocs build
- mv site public/docs
artifacts:
paths:
- public
only:
- master
...