mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 09:46:11 +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
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
uses: actions/configure-pages@v2
|
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
|
- name: Build with Hugo
|
||||||
env:
|
env:
|
||||||
# For maximum backward compatibility with Hugo modules
|
# For maximum backward compatibility with Hugo modules
|
||||||
|
@ -43,6 +50,7 @@ jobs:
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
run: |
|
run: |
|
||||||
hugo \
|
hugo \
|
||||||
|
--cacheDir /tmp/hugo/cache \
|
||||||
--minify
|
--minify
|
||||||
# Don't force a base URL, so relative links work everywhere
|
# Don't force a base URL, so relative links work everywhere
|
||||||
# --baseURL "${{ steps.pages.outputs.base_url }}/"
|
# --baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
|
|
Loading…
Reference in a new issue