-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (38 loc) · 1.24 KB
/
.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
---
build pdf epub book:
image: asciidoctor/docker-asciidoctor:1.14
artifacts:
expire_in: 7days
paths:
- build/PlantUML.pdf
- build/PlantUML.epub
allow_failure: true
script:
- asciidoctor-pdf --require asciidoctor-diagram
--attribute sourcedir=../../../../../assets/
--destination-dir build
PlantUML.adoc
- asciidoctor-epub3 --require asciidoctor-diagram
--attribute sourcedir=../../../../../assets/
--destination-dir build
PlantUML.adoc
pages:
stage: deploy
image: alpine:3.15
needs: []
before_script:
- apk update
- apk add openssl git tzdata asciidoctor nodejs npm hugo
- find content -name "*.adoc" -type f -exec sed -i 's/\[plantuml/\[source, plantuml/' {} +
- find content -name "*.adoc" -type f -exec sed -i '/\/\/\/\//d' {} +
- find content -name "*.md" -type f -exec sed -i '/<!---md/d' {} +
- find content -name "*.md" -type f -exec sed -i '/md--->/d' {} +
- npm install
- git submodule update --init --recursive
script:
- hugo --gc --destination ./public --baseURL ${PAGES_BASE_URL}
artifacts:
paths:
- public
only:
- main