mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Cache retrieved files
This commit is contained in:
parent
6a77e2bb06
commit
013d9ed1ae
1 changed files with 8 additions and 0 deletions
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
|
@ -36,6 +36,13 @@ jobs:
|
|||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Cache Hugo persistent info
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: hugo-persistent-cache
|
||||
with:
|
||||
path: /tmp/hugo
|
||||
key: ${{ env.cache-name }}
|
||||
- name: Build with Hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
|
@ -43,6 +50,7 @@ jobs:
|
|||
HUGO_ENV: production
|
||||
run: |
|
||||
hugo \
|
||||
--cacheDir /tmp/hugo/cache \
|
||||
--minify
|
||||
# Don't force a base URL, so relative links work everywhere
|
||||
# --baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||
|
|
Loading…
Reference in a new issue