https://github.com/LuisGC/blog
Raw File
Tip revision: 3f1e6dcb65ed38478393150db09320c5e7c5c1e2 authored by CircleCI on 18 February 2018, 16:35 UTC
Generated site on Sun Feb 18 16:35:41 UTC 2018 [ci skip]
Tip revision: 3f1e6dc
circle.yml
machine:
  pre:
    - git config --global user.name "CircleCI"
    - git config --global user.email "circleci@circleci.com"

dependencies:
  pre:
    - curl -s "https://get.sdkman.io" | bash
    - sdk install jbake 2.5.1

test:
  override:
    - sdk version
    - sdk current jbake

deployment:
  master:
    branch: master
    commands:
      - rm -rf docs/*
      - jbake -b . ./docs
      - 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 master
back to top