https://github.com/LuisGC/blog
Tip revision: 3d532a3d2e1d0d82cff45a0e1a3d7dfeae1d987b authored by LuisGC on 18 February 2018, 19:26:00 UTC
Merge branch 'master' of https://github.com/LuisGC/blog into hugo
Merge branch 'master' of https://github.com/LuisGC/blog into hugo
Tip revision: 3d532a3
circle.yml
machine:
pre:
- git config --global user.name "CircleCI"
- git config --global user.email "circleci@circleci.com"
dependencies:
pre:
- go get -v github.com/gohugoio/hugo
test:
override:
- hugo check
deployment:
master:
branch:
- master
commands:
- rm -rf docs
- hugo -d docs -t hugo-future-imperfect
- find docs -type f -exec sed -i 's/src="\/img/src="\/blog\/img/g' {} +
- find docs -type f -exec sed -i 's/src=\"\/img/src=\"\/blog\/img/g' {} +
- find docs -type f -exec sed -i 's/src="\/css/src="\/blog\/css/g' {} +
- find docs -type f -exec sed -i 's/src=\"\/css/src=\"\/blog\/css/g' {} +
- find docs -type f -exec sed -i 's/src="\/js/src="\/blog\/js/g' {} +
- find docs -type f -exec sed -i 's/src=\"\/js/src=\"\/blog\/js/g' {} +
- git add docs
- git commit --message "Generated site on $(date) [ci skip]"
- git push origin master