https://github.com/LuisGC/blog
Tip revision: a190f270da39746f098672680944a4e33da8044b authored by LuisGC on 18 February 2018, 19:37:23 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: a190f27
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/href="\/css/src="\/blog\/css/g' {} +
- find docs -type f -exec sed -i 's/href=\"\/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