hugo-www-lauka-net/.woodpecker/deploy-netlify.yaml
lauralani 11fbadf93f
Some checks failed
ci/woodpecker/push/deploy-netlify Pipeline failed
bump hugo version to 0.117.0
2023-08-08 09:13:04 +02:00

36 lines
977 B
YAML

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/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:
- event: push
branch: staging
secrets:
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
commands:
- npm install netlify-cli -g
- netlify deploy --alias stage --dir ./public
deploy-production:
image: node:alpine
when:
- event: push
branch: main
secrets:
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
commands:
- npm install netlify-cli -g
- netlify deploy --prod --dir ./public