https://github.com/LuisGC/blog
Revision ac4444141f7837c48efa2540e252ed61ce29a456 authored by LuisGC on 13 January 2018, 00:18:30 UTC, committed by LuisGC on 13 January 2018, 00:18:30 UTC
1 parent a32dc54
Raw File
Tip revision: ac4444141f7837c48efa2540e252ed61ce29a456 authored by LuisGC on 13 January 2018, 00:18:30 UTC
summary added
Tip revision: ac44441
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' {} +
      - git add docs
      - git commit --message "Generated site on $(date) [ci skip]"
      - git push origin master
back to top