-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (39 loc) · 863 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
---
stages:
- build:theme
- build
- deploy
build:theme:
stage: build:theme
image: node:17.2.0-slim
script:
- cd "${CI_PROJECT_DIR}/themes/ght1pc9kc"
- npm install --unsafe-perm
- npx tailwindcss -i src/syntax.css -o static/syntax.css --minify
- npx tailwindcss -i src/main.css -o static/main.css --minify
cache:
untracked: true
artifacts:
paths:
- ${CI_PROJECT_DIR}/themes/ght1pc9kc
build:pages:
stage: build
image: registry.gitlab.com/pages/hugo/hugo_extended:0.89.4
dependencies:
- build:theme
script:
- hugo --minify
artifacts:
paths:
- public
pages:
stage: deploy
dependencies:
- build:pages
script:
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\|json\)$' -execdir gzip -f --keep {} \;
artifacts:
paths:
- public
only:
- master