Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 844 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 844 Bytes

Setup

The jekyll/ruby source lives on the gh-pages branch, and the built site on master, as per github-pages convention for organisation-level sites which are pre-built.

rvm use 2.4.3
bundle install

Making Changes

This could probably be made into a Makefile, but it's probably not worth it.

# Clone the repo
git clone [email protected]:SparkSeat/sparkseat.github.io.git
cd sparkseat.github.io
git checkout gh-pages

# Make changes and commit
# vim index.html

# Build
JEKYLL_ENV=production jekyll build --destination _build

# Update build files on master
git checkout master
rsync -rv  --delete --exclude=.git --exclude=.gitignore --exclude=_build --exclude .nojekyll _build/ ./
rm -r _build

# Commit and push
git add .
git commit -m "Update to latest"
git push

# Checkout gh-pages again
git checkout gh-pages