-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
33 lines (28 loc) · 765 Bytes
/
circle.yml
File metadata and controls
33 lines (28 loc) · 765 Bytes
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
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
machine:
pre:
- git config --global user.name "CircleCI"
- git config --global user.email "circleci@circleci.com"
dependencies:
pre:
- mkdir ~/tmp
- wget -O ~/tmp/hugo_0.20.7_Linux-64bit.tar.gz https://github.com/spf13/hugo/releases/download/v0.20.7/hugo_0.20.7_Linux-64bit.tar.gz
- cd ~/tmp && tar xvzf ~/tmp/hugo_0.20.7_Linux-64bit.tar.gz
- mv ~/tmp/hugo ~/bin/hugo
test:
override:
- hugo -v
deployment:
master:
branch: master
commands:
- rm -rf docs/*
- hugo -d docs
- cd docs
- git add -A .
- git commit --message "Generated site on $(date)"
- git push origin master
- cd ..