https://github.com/LuisGC/blog
Revision 9756366132a5dce4afd11b4c0ac8801b5b969d23 authored by LuisGC on 29 June 2018, 21:39:26 UTC, committed by LuisGC on 29 June 2018, 21:39:26 UTC
1 parent e55e905
Tip revision: 9756366132a5dce4afd11b4c0ac8801b5b969d23 authored by LuisGC on 29 June 2018, 21:39:26 UTC
minor improvement
minor improvement
Tip revision: 9756366
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
Computing file changes ...