Add caching to CI job
This commit is contained in:
parent
54cdfb6699
commit
1918eec3e2
1 changed files with 6 additions and 0 deletions
|
@ -11,9 +11,15 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Install Hugo
|
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
|
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:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: npm install
|
command: npm install
|
||||||
|
- save_cache:
|
||||||
|
key: npm-{{ checksum "package.json" }}
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
- run:
|
- run:
|
||||||
name: Build site
|
name: Build site
|
||||||
command: make release
|
command: make release
|
||||||
|
|
Loading…
Reference in a new issue