1
Fork 0

Add caching to CI job

This commit is contained in:
Jake Howard 2018-02-14 21:11:13 +00:00
parent 54cdfb6699
commit 1918eec3e2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -11,9 +11,15 @@ jobs:
- run:
name: Install Hugo
command: wget https://github.com/gohugoio/hugo/releases/download/v0.35/hugo_0.35_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb
- restore_cache:
key: npm-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm install
- save_cache:
key: npm-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Build site
command: make release