www-lauka-net-11ty/.builds/deploy.yml
2023-02-25 20:14:18 +01:00

15 lines
453 B
YAML

image: debian/bullseye
packages:
- nodejs
- npm
secrets:
- 7db2a845-55f9-43da-8319-c9c796cbd8a5
tasks:
- prepare: |
npm install -D @11ty/eleventy
npm install -D @azure/static-web-apps-cli
set +x && export SWA_CLI_DEPLOYMENT_TOKEN=`cat ~/deploy_token.txt` && set -x
- build: |
npx @11ty/eleventy --input=./www-lauka-net --output=public
- deploy: |
npx @azure/static-web-apps-cli deploy ./public --env Production