diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index feb4067..eafafcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,18 @@ jobs: submodules: recursive fetch-depth: 0 + - name: Cache Hugo modules + uses: actions/cache@v3 + with: + path: .hugo + key: ${{ runner.os }}-hugo-${{ steps.hugo-version.outputs.version }}-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugo-${{ steps.hugo-version.outputs.version }} + ${{ runner.os }}-hugo- + - name: Setup Hugo uses: peaceiris/actions-hugo@v3 + id: hugo-version with: hugo-version: 'latest' extended: true