File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ jobs:
2626 build :
2727 runs-on : ubuntu-latest
2828 env :
29-
29+ HUGO_VERSION : 0.148.0
30+ HUGO_ENVIRONMENT : production
3031 TZ : Europe/Berlin
3132 steps :
3233 - name : Install Hugo CLI
3334 run : |
34- wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.147.9/hugo_extended_0.147.9_linux -amd64.deb \
35+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux -amd64.deb \
3536 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
3637 - name : Install Dart Sass Embedded
3738 run : sudo snap install dart-sass-embedded
5152 HUGO_ENV : production
5253 run : |
5354 hugo \
55+ --gc \
5456 --minify \
55- --baseURL "${{ steps.pages.outputs.base_url }}/"
57+ --baseURL "${{ steps.pages.outputs.base_url }}/" \
58+ --cacheDir "${{ runner.temp }}/hugo_cache"
5659 - name : Upload artifact
5760 uses : actions/upload-pages-artifact@v3
5861 with :
You can’t perform that action at this time.
0 commit comments