-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
31 lines (26 loc) · 912 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
# This file is a template, and might need editing before it works on your project.
---
# All available Hugo versions are listed here:
# https://gitlab.com/pages/hugo/container_registry
image: registry.gitlab.com/pages/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
test:
before_script:
- apk add --update --no-cache git
script:
# - hugo --enableGitInfo -b "https://jhilker.gitlab.io"
- hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://jhilker.gitlab.io/hugo-all-for-one/
except:
- main
pages:
before_script:
- apk add --update --no-cache git
script:
# - hugo --enableGitInfo -b "https://jhilker.gitlab.io"
- hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://jhilker.gitlab.io/hugo-all-for-one/
artifacts:
paths:
- public
only:
- main