Add CI caching

This commit is contained in:
David Eisinger
2024-02-13 20:59:15 -05:00
parent 0669cd273b
commit 90e283af6c

View File

@@ -35,8 +35,15 @@ jobs:
KEY: ${{ github.workspace }}/secret.key KEY: ${{ github.workspace }}/secret.key
run: cd bin/dither && bundle exec ruby dither.rb >> dither.log 2>&1 & 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 - name: Generate static site
env: env:
HUGO_CACHEDIR: ${{ github.workspace}}/.cache
DITHER_SERVER: http://localhost:4567 DITHER_SERVER: http://localhost:4567
run: | run: |
source bin/get-last-commit.sh source bin/get-last-commit.sh