www-lauka-net-11ty/.builds/deploy.yml
2023-02-26 10:24:15 +01:00

17 lines
535 B
YAML

image: debian/bullseye
packages:
- nodejs
repositories:
nodejs: https://deb.nodesource.com/node_18.x bullseye main 1655A0AB68576280
environment:
NETLIFY_SITE_ID: 9e86e7a4-85e1-4039-a7df-f2d25cf8392c
secrets:
- 5f55bef1-5d12-4020-97bf-f622e50146a9
tasks:
- prepare: |
npm install -D @11ty/eleventy netlify-cli
- build: |
npx @11ty/eleventy --input=./www-lauka-net --output=public
- deploy: |
set +x && source ~/.buildsecrets && set -x
npx netlify deploy --site=$NETLIFY_SITE_ID --dir=public --prod