https://github.com/LuisGC/blog
Revision dcb735853d26fee45704dfe331b24aae8b95e41a authored by LuisGC on 18 February 2018, 20:46:33 UTC, committed by LuisGC on 18 February 2018, 20:46:33 UTC
Tip revision: dcb735853d26fee45704dfe331b24aae8b95e41a authored by LuisGC on 18 February 2018, 20:46:33 UTC
Merge branch 'master' of https://github.com/LuisGC/blog
Merge branch 'master' of https://github.com/LuisGC/blog
Tip revision: dcb7358
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 --cleanDestinationDir -b "http://luiyo.net/blog/"
- 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 ...