Revision 07d049ef5ebff855bc484ae955aa3c3bbe878417 authored by CircleCI on 18 February 2018, 19:10:22 UTC, committed by CircleCI on 18 February 2018, 19:10:22 UTC
1 parent 25b94aa
Raw File
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

deployment:
  master:
    branch:
      - master
      - hugo
    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' {} +
      - git add docs
      - git commit --message "Generated site on $(date) [ci skip]"
      - git push origin hugo

test:
  override:
      - hugo check
back to top