https://github.com/LuisGC/blog
Revision b259104e8c6f85973c1dd8cda06f4a3d3ce04347 authored by LuisGC on 29 June 2018, 19:55:23 UTC, committed by LuisGC on 29 June 2018, 19:55:23 UTC
1 parent 4234537
Tip revision: b259104e8c6f85973c1dd8cda06f4a3d3ce04347 authored by LuisGC on 29 June 2018, 19:55:23 UTC
featured picture added
featured picture added
Tip revision: b259104
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 ...