Skip to content

Instantly share code, notes, and snippets.

@roachhd
Last active August 29, 2015 14:09
Show Gist options
  • Save roachhd/4c05d11087261d2cf476 to your computer and use it in GitHub Desktop.
Save roachhd/4c05d11087261d2cf476 to your computer and use it in GitHub Desktop.
my github website deploy workflow

#Workflow to GitHub Deployment with Jekyll ######short guide

  • Grunt is always running when I’m writing or designing. It handles a few things, as defined in my Gruntfile, namely:
    • SVGMin to minify my SVG files and remove unnecessary code
    • SVG2PNG to make PNG copies of my SVG files
    • Sass to make authoring my stylesheets easier
    • Autoprefixer to prefix CSS properties and values as needed
    • Jekyll to build my site into static HTML files
    • Finally, a “watch” task to watch my files for changes and perform the above tasks
  • Jekyll builds my site in a _site directory, which is ignored by Git so that I don’t end up with duplicate content and unnecessary bloat on GitHub.
  • When my post or design changes are in a state I’m happy with, I commit my changes and push to GitHub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment