Skip to content

Commit

Permalink
save & restore cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabouardy committed Mar 26, 2018
1 parent 20b6a2f commit 7916853
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ jobs:
- run:
name: Install Hexo CLI
command: npm install -g hexo-cli
- restore_cache:
keys:
- npm-deps-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm install
- save_cache:
key: npm-deps-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Generate static website
command: hexo generate
Expand All @@ -22,4 +29,4 @@ jobs:
apt-get install -y awscli
- run:
name: Push to S3 bucket
command: aws s3 sync public/* s3://slowcoder.com
command: cd public/ && aws s3 sync . s3://slowcoder.com

0 comments on commit 7916853

Please sign in to comment.