Skip to content

Commit d712332

Browse files
author
marci
committed
Aktualisiere Hugo-Version auf 0.148.0 und verbessere Build-Konfiguration mit Cache-Verzeichnis
1 parent 402a8c5 commit d712332

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy-site.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -51,8 +52,10 @@ jobs:
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:

0 commit comments

Comments
 (0)