Add hugo module caching
All checks were successful
Homepage deployment / deploy (push) Successful in 23s
All checks were successful
Homepage deployment / deploy (push) Successful in 23s
This commit is contained in:
parent
a88de57d54
commit
437f41233a
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,8 @@ name: Homepage deployment
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HUGO_CACHEDIR: /tmp/hugo_cache
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
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
|
run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && cp mc /usr/local/bin
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Setup Hugo
|
||||||
uses: https://github.com/peaceiris/actions-hugo@v3
|
uses: https://github.com/peaceiris/actions-hugo@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue