Add CI caching
This commit is contained in:
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -35,8 +35,15 @@ jobs:
|
||||
KEY: ${{ github.workspace }}/secret.key
|
||||
run: cd bin/dither && bundle exec ruby dither.rb >> dither.log 2>&1 &
|
||||
|
||||
- name: Cache Hugo build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ github.workspace }}/.cache
|
||||
key: ${{ runner.os }}-hugo_cache
|
||||
|
||||
- name: Generate static site
|
||||
env:
|
||||
HUGO_CACHEDIR: ${{ github.workspace}}/.cache
|
||||
DITHER_SERVER: http://localhost:4567
|
||||
run: |
|
||||
source bin/get-last-commit.sh
|
||||
|
||||
Reference in New Issue
Block a user