www-lauka-net-11ty/.woodpecker/deploy-netlify.yaml

36 lines
742 B
YAML
Raw Normal View History

2023-06-27 11:10:09 +02:00
steps:
build:
image: node:19
when:
- event: push
branch: [main, staging]
commands:
- npm install -D @11ty/eleventy
- rm -rf public/
- npx @11ty/eleventy --input=. --output=public
deploy-staging:
image: node:alpine
when:
- event: push
branch: staging
secrets:
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
commands:
- npm install netlify-cli -g
2023-06-27 15:53:45 +02:00
- netlify deploy --alias stage --dir ./public
2023-06-27 11:10:09 +02:00
deploy-production:
image: node:alpine
when:
- event: push
branch: main
secrets:
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
commands:
- npm install netlify-cli -g
2023-06-27 16:08:00 +02:00
- netlify deploy --prod --dir ./public