File tree Expand file tree Collapse file tree 3 files changed +438
-16
lines changed
content/posts/introduction Expand file tree Collapse file tree 3 files changed +438
-16
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,12 @@ jobs:
3232 build :
3333 runs-on : ubuntu-latest
3434 env :
35- HUGO_VERSION : 0.144.2
35+ HUGO_VERSION : 0.145.0
3636 steps :
3737 - name : Install Hugo CLI
3838 run : |
3939 wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4040 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
41- - name : Install Dart Sass
42- run : sudo snap install dart-sass
4341 - name : Checkout
4442 uses : actions/checkout@v4
4543 with :
@@ -50,17 +48,29 @@ jobs:
5048 uses : actions/configure-pages@v5
5149 - name : Install Node.js dependencies
5250 run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51+ - name : Cache Restore
52+ id : cache-restore
53+ uses : actions/cache/restore@v4
54+ with :
55+ path : |
56+ ${{ runner.temp }}/hugo_cache
57+ key : hugo-${{ github.run_id }}
58+ restore-keys :
59+ hugo-
5360 - name : Build with Hugo
54- env :
55- HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
56- HUGO_ENVIRONMENT : production
57- TZ : Australia/Melbourne
5861 run : |
5962 hugo \
6063 --gc \
6164 --minify \
6265 --source ./site \
6366 --baseURL "${{ steps.pages.outputs.base_url }}/"
67+ - name : Cache Save
68+ id : cache-save
69+ uses : actions/cache/save@v4
70+ with :
71+ path : |
72+ ${{ runner.temp }}/hugo_cache
73+ key : ${{ steps.cache-restore.outputs.cache-primary-key }}
6474 - name : Upload artifact
6575 uses : actions/upload-pages-artifact@v3
6676 with :
You can’t perform that action at this time.
0 commit comments