-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
33 lines (32 loc) · 1.03 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
image: "debian:stable"
script:
- rm -rf public
- cat /etc/*release
- apt-get update && apt-get install -y wget
- wget https://github.com/gohugoio/hugo/releases/download/v0.86.0/hugo_extended_0.86.0_Linux-64bit.deb
- dpkg -i *.deb
- hugo env
- hugo new site test && cd test
- mkdir themes/gruvhugo
- cp -r ../archetypes themes/gruvhugo
- cp -r ../exampleSite themes/gruvhugo
- cp -r ../layouts themes/gruvhugo
- cp -r ../assets themes/gruvhugo
- cp ../LICENSE.md themes/gruvhugo
- cp ../README.md themes/gruvhugo
- cp -r ../static themes/gruvhugo
- cp ../theme.toml themes/gruvhugo
- rm -rf ../content && cp -r themes/gruvhugo/exampleSite/content/ .
- rm config.toml && cp themes/gruvhugo/exampleSite/deploy.toml ./config.toml
- cp -r themes/gruvhugo/static/ .
- cp -r themes/gruvhugo/exampleSite/static/css/ static/.
- hugo
- mv public ../
artifacts:
paths:
- public
only:
- master