New Workflow
26/May 2015
I’m in the midst of automating deployment of my site using Git hooks. See here for a nice tutorial.
There will be other pieces to my ultimate workflow too, such as creating a richer build using grunt and coffeescript, and maybe testing with Jenkins, etc. I’ll probably experiment with these things now that I’ve got my first automated push going.
But so far I’m just happy to have a new editing strategy for web site content that works like writing code:
- Pull site source from repository
- Add or edit some content (flagged draft)
- Check it out offline (i.e. run hugo in watch mode)
- If interrupted, push a draft to the repository (possibly branching if major interruption)
- If tweaks are required goto 1, otherwise continue
- Remove “draft” flags on fresh satisfactory content
- Commit to Git (merge if required)
- Push to central Git repository
With the right trigger script on my repository, any changes to the master branch get published to my system automagically (thank you rsync).