Add hugo module caching
All checks were successful
Homepage deployment / deploy (push) Successful in 23s

This commit is contained in:
GHOSCHT 2024-12-29 16:08:06 +01:00
parent a88de57d54
commit 437f41233a
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -5,6 +5,8 @@ name: Homepage deployment
jobs:
deploy:
runs-on: ubuntu-latest
env:
HUGO_CACHEDIR: /tmp/hugo_cache
steps:
- name: Setup Go
uses: actions/setup-go@v5
@ -14,6 +16,13 @@ jobs:
run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && cp mc /usr/local/bin
- name: Clone repository
uses: actions/checkout@v4
- name: Cache Hugo modules
uses: actions/cache@v4
with:
path: ${{ env.HUGO_CACHEDIR }}
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v3
with: