From 90e283af6c005404f4f41bda8d1f7e8a853f8c01 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Tue, 13 Feb 2024 20:59:15 -0500 Subject: [PATCH] Add CI caching --- .github/workflows/deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2441ed7..483aa62 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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