-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
55 lines (53 loc) · 1006 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
build_a:
stage: build
tags:
- docker
image:
name: ruby:2.6
script:
- gem install bundler
- gem install asciidoctor
- build_tools/build_html.sh
- ls -la html_files/
artifacts:
paths:
- html_files
only:
- main
build_b:
stage: build
needs: [build_a]
tags:
- docker
image:
name: pandoc/latex
entrypoint: ["/bin/sh", "-c"]
script:
- cd html_files
- find . -name "*.html*" | while read i; do pandoc -f html -t odt "$i" -o "${i%.*}.odt"; done
- find . -name '*.odt' -exec mv {} ../odt_files \;
- ls -la ../odt_files
artifacts:
paths:
- odt_files
only:
- main
pages:
stage: deploy
tags:
- docker
image:
name: ruby:2.6
script:
- gem install bundler
- bundle config set --local path 'vendor'
- bundle install
- bundle update
- rm -rf public
- build_tools/build_index.sh
- bundle exec jekyll build -d public
artifacts:
paths:
- public
only:
- main