Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CircleCI x HatenaBlog

hatappi
June 10, 2016

CircleCI x HatenaBlog

hatappi

June 10, 2016
Tweet

More Decks by hatappi

Other Decks in Technology

Transcript

  1. !

  2. σΟϨΫτϦߏ੒ root_dir ᵓ circle.yml ᵓ script ᴹ ᵋ deploy.sh ᵋ

    articles ɹɹᵓ هࣄ1 ɹɹɹɹᵓ هࣄ1.md ɹɹᵓ هࣄ2 ɹɹɹɹᵋ هࣄ2.md
  3. ର৅هࣄΛऔΓग़͢ํ๏ git log͔ΒؤுͬͯऔΓग़͠·͢ printf "$(git log --name-status -p -1)" |

    egrep "^[AM]\s+\"?articles\/.*\.md" | awk '{print $2}' | head -1 | sed -e 's/^\"//g' | sed -e 's/\"$//g'
  4. !