diff --git a/.woodpecker/deploy-netlify.yaml b/.woodpecker/deploy-netlify.yaml index c9817ef..0f3921b 100644 --- a/.woodpecker/deploy-netlify.yaml +++ b/.woodpecker/deploy-netlify.yaml @@ -1,13 +1,15 @@ steps: build: image: golang:1.20-bookworm + environment: + - HUGO_VERSION=0.117.0 when: - event: push branch: [main, staging] commands: - - wget https://github.com/gohugoio/hugo/releases/download/v0.116.0/hugo_extended_0.116.0_linux-amd64.deb && apt install ./hugo_extended_0.116.0_linux-amd64.deb && rm -f hugo_extended_0.116.0_linux-amd64.deb + - wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_${HUGO_VERSION}_linux-amd64.deb - hugo --minify --destination ./public - + deploy-staging: image: node:alpine when: